paypal / paypalhttp_ruby

MIT License
6 stars 38 forks source link

Downcase content-type header because PayPal started sending "JSON" #6

Open artfuldodger opened 3 years ago

artfuldodger commented 3 years ago

Starting today, we started seeing these errors:

PayPalHttp::UnsupportedEncodingError: Unable to deserialize response with Content-Type application/JSON. Supported decodings are ["/application\\/json/", "/text\\/.*/", "/multipart\\/.*/", "/^application\\/x-www-form-urlencoded/"]

Downcasing the content-type header value seems harmless