Skip to content

Commit 2a8fce2

Browse files
SimonUngemergify[bot]
authored andcommitted
Handle empty HTTP body in response (as some AWS 200 reponse will have an empty body for some reason)
(cherry picked from commit c32e0d6) (cherry picked from commit 4d798cc)
1 parent 3e50921 commit 2a8fce2

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)