Skip to content

Commit

Permalink
Register json middleware
Browse files Browse the repository at this point in the history
I was quite surprised to realize I had to do register this middleware manually, as I didn't have to do that for the other middleware in core.
  • Loading branch information
mollerhoj authored Oct 7, 2021
1 parent 506e97a commit 7a3dcd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/faraday/response/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ def response_type(env)
end
end
end

Faraday::Response.register_middleware(json: Faraday::Response::Json)

0 comments on commit 7a3dcd8

Please sign in to comment.