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 doesn't work #20

Closed
speedwheel opened this issue Aug 4, 2017 · 2 comments
Closed

Gzip doesn't work #20

speedwheel opened this issue Aug 4, 2017 · 2 comments

Comments

@speedwheel
Copy link

speedwheel commented Aug 4, 2017

I am trying to enable gzip for all the website, but getting the following error in the browser's
console for my static files: "Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH".

If I disable Gzip everything works fine.

bbbb

This is the code I've used inside Iris:

app = iris.New()
app.Use(func(ctx context.Context) {
    ctx.Gzip(true)
})

I am using the latest version of Iris, Ubuntu 16.04 and Chrome.

Any thoughts?

@hiveminded
Copy link
Contributor

@speedwheel can't reproduce that...gzip works here

@kataras
Copy link
Member

kataras commented Aug 12, 2017

Gzip was working but StaticWeb had the issue because of its internal serveFile and serveContent, they should be fixed now, follow this thread instead: kataras/iris#717

@kataras kataras closed this as completed Aug 12, 2017
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

3 participants