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

Accept-Encoding support #12

Open
Jille opened this issue Jan 18, 2024 · 2 comments
Open

Accept-Encoding support #12

Jille opened this issue Jan 18, 2024 · 2 comments

Comments

@Jille
Copy link

Jille commented Jan 18, 2024

Hi. Thanks for the library :)

Any plans for adding Accept-Encoding support? It currently doesn't work, I suspect because "gzip, br" doesn't contain slashes like mime-types.

@aohorodnyk
Copy link
Owner

@Jille Thank you for the ticket. Could you please describe the whole use case for that and I'll be happy to add it.

@Jille
Copy link
Author

Jille commented Mar 22, 2024

I want to know which encodings are supported by the client. A browser might send Accept-Encoding: gzip, br, older browsers would not include br and a more minimal implementation might not send any header at all.

Based on this I'd let the server pick the best available compression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants