Skip to content

Commit 69b6ed4

Browse files
Merge pull request #11720 from SimonUnge/empty_body_json_decode
Handle empty HTTP body in response from AWS JSON
2 parents ff5a324 + c32e0d6 commit 69b6ed4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbitmq_aws/src/rabbitmq_aws_json.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
%% @end
1515
decode(Value) when is_list(Value) ->
1616
decode(list_to_binary(Value));
17+
decode(<<>>) ->
18+
[];
1719
decode(Value) when is_binary(Value) ->
1820
Decoded0 = rabbit_json:decode(Value),
1921
Decoded = maps:to_list(Decoded0),

0 commit comments

Comments
 (0)