Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

artfuldodger
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant