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
However, it unconditionally includes br in the Accept-Encoding header it sets (if the header wasn’t specified by the library user), regardless of whether the runtime supports brotli or not.
So if brotli support isn’t available, and the server decides to encode the response using brotli (which it’s allowed to, based on the header axios added), then the library user will be left with a response they can’t decode, even though they don’t asked for brotli encoding.
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
1.2.0-alpha.1
Adapter Version
http
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Axios has optional support for transparently decompressing brotli-encoded responses, depending on whether brotli support is available in the runtime.
However, it unconditionally includes
br
in theAccept-Encoding
header it sets (if the header wasn’t specified by the library user), regardless of whether the runtime supports brotli or not.So if brotli support isn’t available, and the server decides to encode the response using brotli (which it’s allowed to, based on the header axios added), then the library user will be left with a response they can’t decode, even though they don’t asked for brotli encoding.
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
1.2.0-alpha.1
Adapter Version
http
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: