From 7a3dcd89dc0b46987d66465709c3f7fa80371ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Dahl=20M=C3=B8llerh=C3=B8j?= Date: Thu, 7 Oct 2021 19:14:20 +0200 Subject: [PATCH] Register json middleware 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. --- lib/faraday/response/json.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/faraday/response/json.rb b/lib/faraday/response/json.rb index 19fa72047..399b7f351 100644 --- a/lib/faraday/response/json.rb +++ b/lib/faraday/response/json.rb @@ -50,3 +50,5 @@ def response_type(env) end end end + +Faraday::Response.register_middleware(json: Faraday::Response::Json)