- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
tls + static files: Missing response header "content-encoding" #421
Comments
Tested this with My current workaround is to disable HTTP2 via Note: |
Tested your workaround to disable HTTP2 via |
@neowutran fixed in master, could you try it |
@fafhrd91 yes I do (and I'm on linux) |
Happy to discuss this on gitter |
Yup, content-encoding is back in master : ) |
& no issue like #290 with master |
Hi,
When I am using TLS ( like https://github.com/actix/examples/blob/master/tls/src/main.rs#L44 ), I cannot use my browser to see the static files anymore ( only tested with static files )
The issue is that the header "content-encoding" is missing in the response header. So the browser receive correctly the compressed data, but doesn't know how to decompress them.
The error is linked with TLS / HTTP2
In my code, I have a
Header sended by the browser:
Header received by the browser:
If I stop using TLS, replacing
by
Then the header received by the browser is
"content-encoding" header seems to be missing in the response when using TLS / HTTP2
(All dependencies are up to date )
Thanks
The text was updated successfully, but these errors were encountered: