Skip to content

Commit

Permalink
Merge pull request #60 from carlhoerberg/patch-1
Browse files Browse the repository at this point in the history
Handle 204 responses with HTTP keepalive
  • Loading branch information
michaelklishin authored Nov 1, 2022
2 parents ca0812c + 2285920 commit 7bbcf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rabbitmq/http/client/response_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(client)
end

def decode_resource(response)
if response.nil? || response.body.empty?
if response.nil? || response.body.nil? || response.body.empty?
Hashie::Mash.new
else
decode_response_body(response.body)
Expand Down

0 comments on commit 7bbcf15

Please sign in to comment.