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

model.json cannot be decoded on Firefox #9

Closed
xtuc opened this issue Dec 5, 2017 · 1 comment
Closed

model.json cannot be decoded on Firefox #9

xtuc opened this issue Dec 5, 2017 · 1 comment

Comments

@xtuc
Copy link
Member

@xtuc xtuc commented Dec 5, 2017

Curling the file shows the correct Content-Type header:

$ curl -I http://localhost:8080/mappack/map/json/model.json\?t\=ac0de50fd3c3e2181cb9268eda9b396e

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Size: 3340
Content-Type: application/gzip
Date: Tue, 05 Dec 2017 22:09:52 GMT

But both Chrome and Firefox let you inspect the non decoded source (which is not valid JSON of course). Firefox even fails to read the content at all.

@netgusto should we add a fallback to a non-gzip file? or figure out what's wrong with the request/response?

@xtuc

This comment has been minimized.

Copy link
Member Author

@xtuc xtuc commented Dec 7, 2017

Content-Type was not correct, it should be application/json and not gzip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.