Skip to content

Commit

Permalink
Merge pull request #11720 from SimonUnge/empty_body_json_decode
Browse files Browse the repository at this point in the history
Handle empty HTTP body in response from AWS JSON
  • Loading branch information
michaelklishin authored Jul 15, 2024
2 parents ff5a324 + c32e0d6 commit 69b6ed4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/rabbitmq_aws/src/rabbitmq_aws_json.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
%% @end
decode(Value) when is_list(Value) ->
decode(list_to_binary(Value));
decode(<<>>) ->
[];
decode(Value) when is_binary(Value) ->
Decoded0 = rabbit_json:decode(Value),
Decoded = maps:to_list(Decoded0),
Expand Down

0 comments on commit 69b6ed4

Please sign in to comment.