Skip to content
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

Closed
sfc-gh-pmotacki opened this issue Sep 11, 2023 · 0 comments
Closed
Labels
type::beginner A good issue for someone who is new to the project type::feature request Used when requesting a feature

Comments

@sfc-gh-pmotacki
Copy link
Contributor

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

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
Projects
None yet
Development

No branches or pull requests

2 participants