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

If ContentType header has 'json' in it, then the response will be GZIPed #351

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

praserocking
Copy link

The server was like, if the "content-type" header of response has "text/" in it, then its response will be GZipped. I have added support to GZip the response if it has "/json" as well. When the content type is "application/json", it can be gzipped as it is a textual content anyway. By this, JSONP contents wont be gzipped as it will have content type header as "application/javascript"

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d2c6a64 on praserocking:master into * on NanoHttpd:master*.

@LordFokas LordFokas merged commit a4d62f0 into NanoHttpd:master Aug 10, 2016
@ritchieGitHub ritchieGitHub added this to the 2.3.1 milestone Aug 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants