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
Noticed as part of the v0.29.0 alpha release line that in the projects usingdevServer.proxy configuration, those proxied requests started not returning content anymore.
I dug into the headers a bit and started filtering them out and noticed that the one that fixed was when omitting the content-encoding header
< content-encoding: gzip
Which makes sense, as we are processing the request server side first and returning the full body, so telling the client the response is encoded is probably making it think the browser needs to decode it, when it's not necessary.
Haven't quite pinpointed the exact release this broke on (given some periodic rebasing in the release branch, but it does seem to break on the v0.29.0-alpha.0 release which only had this change - #1110
The text was updated successfully, but these errors were encountered:
thescientist13
changed the title
devServer proxy not returning content (when proxied request includes content-encoding response header)
devServer proxy not returning content (when proxied response includes a content-encoding header)
Oct 7, 2023
Type of Change
Bug
Summary
Noticed as part of the v0.29.0 alpha release line that in the projects using
devServer.proxy
configuration, those proxied requests started not returning content anymore.An example endpoint trying to be proxied to is - https://www.contributary.community/api/topology
Details
Interestingly, I noticed the endpoint worked when using
curl
locally and bypassing the browser entirely.I dug into the headers a bit and started filtering them out and noticed that the one that fixed was when omitting the
content-encoding
headerWhich makes sense, as we are processing the request server side first and returning the full body, so telling the client the response is encoded is probably making it think the browser needs to decode it, when it's not necessary.
Haven't quite pinpointed the exact release this broke on (given some periodic rebasing in the release branch, but it does seem to break on the v0.29.0-alpha.0 release which only had this change - #1110
The text was updated successfully, but these errors were encountered: