Skip to content

Commit c32e0d6

Browse files
committed
Handle empty HTTP body in response (as some AWS 200 reponse will have an empty body for some reason)
1 parent 8c6b866 commit c32e0d6

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)