Skip to content

Commit

Permalink
pass options
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansedich committed Jul 27, 2017
1 parent dea7f6a commit 89d8879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday_middleware/response/parse_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ParseJson < ResponseMiddleware
end

define_parser do |body, parser_options|
::JSON.parse body unless body.strip.empty?
::JSON.parse(body, parser_options) unless body.strip.empty?
end

# Public: Override the content-type of the response with "application/json"
Expand Down

0 comments on commit 89d8879

Please sign in to comment.