-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header content-encoding isn't automatically convert to lower case. #5890
Labels
type::beginner
A good issue for someone who is new to the project
type::feature request
Used when requesting a feature
Comments
DavidJDallas
added
type::feature request
Used when requesting a feature
type::beginner
A good issue for someone who is new to the project
labels
Sep 12, 2023
sfc-gh-pmotacki
added a commit
to sfc-gh-pmotacki/axios
that referenced
this issue
Sep 12, 2023
DigitalBrainJS
pushed a commit
that referenced
this issue
Sep 12, 2023
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
type::beginner
A good issue for someone who is new to the project
type::feature request
Used when requesting a feature
Describe the bug
Many services respond with header['content-encoding'] in many forms: 'Gzip', 'GZIP', 'GZip'. My example is connected with downloading from storage.googleapis.com. Response header content-encoding has value 'GZIP' and it is a reason why axios don't decompress content. In my opinion header value should be case-insensitive.
To Reproduce
Every request with zipped response with header['content-encoding'] written in non-lowercase letters.
Code snippet
No response
Expected behavior
No response
Axios Version
1.5.0
Adapter Version
http
Browser
chrome
Browser Version
No response
Node.js Version
18
OS
mac os
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: