Skip to content

Commit

Permalink
Merge d439d73 into 696d08e
Browse files Browse the repository at this point in the history
  • Loading branch information
iaddict committed Sep 28, 2018
2 parents 696d08e + d439d73 commit 943bb4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/flexirest/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ def generate_new_object(options={})
elsif is_json_response?
begin
body = @response.body.blank? ? {} : MultiJson.load(@response.body)
body = {} if body.nil?
rescue MultiJson::ParseError
raise ResponseParseException.new(status:@response.status, body:@response.body, headers:@response.headers)
end
Expand Down

0 comments on commit 943bb4f

Please sign in to comment.