You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, FollowRedirects will try to parse the body of 3xx responses with the requested Accepts type, rather than the intermediary Content-Type of the redirect response. This can cause it to blow up when, for example, a JSON API request issues a redirect with an HTML body as noted in rails/rails#17194.
We could either prevent it from actually doing the parsing on redirects (bad idea? possible with the way the middleware stack works?) or make it honor the intermediary Content-Type when parsing the body.
The text was updated successfully, but these errors were encountered:
Currently,
FollowRedirects
will try to parse the body of3xx
responses with the requestedAccepts
type, rather than the intermediaryContent-Type
of the redirect response. This can cause it to blow up when, for example, a JSON API request issues a redirect with an HTML body as noted in rails/rails#17194.We could either prevent it from actually doing the parsing on redirects (bad idea? possible with the way the middleware stack works?) or make it honor the intermediary Content-Type when parsing the body.
The text was updated successfully, but these errors were encountered: