Skip to content

Commit f830fad

Browse files
committed
Fix POST APIs as well
1 parent e4e2ce9 commit f830fad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

priv/post.erl.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ request(Client, Action, Input, Options) ->
9090
Input = Input0,
9191
<% end %>
9292
Payload = <%= context.encode %>,
93-
SignedHeaders = aws_request:sign_request(Client1, <<"POST">>, URL, Headers, Payload),
93+
SignedHeaders = aws_request:sign_request(Client1, <<"POST">>, URL, Headers, Payload<%= if context.module_name == "aws_apigatewaymanagementapi" or String.contains?(context.module_name, "aws_bedrock") do %>, [{uri_encode_path, true}]<% else %><% end %>),
9494
Response = hackney:request(post, URL, SignedHeaders, Payload, Options),
9595
handle_response(Response).
9696

0 commit comments

Comments
 (0)