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

gzip fails for content type application/json;charset=UTF-8 #5

Open
srchulo opened this issue Mar 10, 2019 · 0 comments
Open

gzip fails for content type application/json;charset=UTF-8 #5

srchulo opened this issue Mar 10, 2019 · 0 comments

Comments

@srchulo
Copy link

srchulo commented Mar 10, 2019

Because the content type is checked for beginning and ending with application/json:

$res->headers->content_type =~ qr{^text|xml$|javascript$|^application/json$}

This means that application/json content with additional information will not be gzipped:

application/json;charset=UTF-8

This is somewhat related to #3 but do we need to check the content type?

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

1 participant