Skip to content

Commit

Permalink
Fix POST APIs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovos committed Jan 27, 2025
1 parent e4e2ce9 commit f830fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/post.erl.eex
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ request(Client, Action, Input, Options) ->
Input = Input0,
<% end %>
Payload = <%= context.encode %>,
SignedHeaders = aws_request:sign_request(Client1, <<"POST">>, URL, Headers, Payload),
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 %>),
Response = hackney:request(post, URL, SignedHeaders, Payload, Options),
handle_response(Response).

Expand Down

0 comments on commit f830fad

Please sign in to comment.