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 causes ERR_CONTENT_DECODING_FAILED with c.String #62

Open
lawlite opened this issue Aug 27, 2015 · 1 comment
Open

gzip causes ERR_CONTENT_DECODING_FAILED with c.String #62

lawlite opened this issue Aug 27, 2015 · 1 comment

Comments

@lawlite
Copy link

lawlite commented Aug 27, 2015

When I used c.String for serving, gzip causes decoding error.
(Google Chrome said ERR_CONTENT_DECODING_FAILED. IE, Edge, Firefox also got same error.)

Even gzip/example/example.go did NOT worked, too. (My Golang version is 1.5)

In my project built under Golang 1.5, I tested several options like c.String, c.HTML, and c.JSON.

Result:
c.String(200, "OK") => Decoding Error
c.HTML(200, "blahblah.html", gin.H{"example": anything ~~~ ... }) => Gzip worked good
c.JSON(200, articles) => Gzip worked good

So, I think that there is a something issue with gzip + c.String.

@lawlite lawlite changed the title gzip causes ERR_CONTENT_DECODING_FAILED gzip causes ERR_CONTENT_DECODING_FAILED with c.String Aug 27, 2015
@lawlite
Copy link
Author

lawlite commented Aug 28, 2015

I found #59. I retried with this, then the problem is solved.

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