Skip to content

Commit 7bbcf15

Browse files
Merge pull request #60 from carlhoerberg/patch-1
Handle 204 responses with HTTP keepalive
2 parents ca0812c + 2285920 commit 7bbcf15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rabbitmq/http/client/response_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(client)
1313
end
1414

1515
def decode_resource(response)
16-
if response.nil? || response.body.empty?
16+
if response.nil? || response.body.nil? || response.body.empty?
1717
Hashie::Mash.new
1818
else
1919
decode_response_body(response.body)

0 commit comments

Comments
 (0)