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

Fix StaticFileHandler failing spec #599

Merged

Conversation

davidepaolotua
Copy link
Contributor

Description of the Change

Change fixes the build failing due to http module now removing ContentEncoding is decompress param is set to true, see also Issue #594

Benefits

Build should work again now.

Possible Drawbacks

No checks are actually performed on the body of the response. But really, this I think was not the spec of the spec

@davidepaolotua davidepaolotua marked this pull request as draft March 3, 2021 08:42
The update concerns the other two tests concerning gzip. As of now, the response was
being automatically ungzipped if ContentEncoding was set to gzip, rendering the two
tests basically useless.
Adding decompress: false to both of them actually does not remove the ContentEncoding
header, so that we can ensure that the response is not actually gzipped.
@davidepaolotua davidepaolotua marked this pull request as ready for review March 3, 2021 08:49
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jinn999 🙏

@sdogruyol sdogruyol merged commit 8d0875f into kemalcr:master Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants