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

Gzipping fails when martini is used as a reverse proxy #16

Open
Romanowiczmarek opened this issue May 9, 2016 · 0 comments
Open

Gzipping fails when martini is used as a reverse proxy #16

Romanowiczmarek opened this issue May 9, 2016 · 0 comments

Comments

@Romanowiczmarek
Copy link

Hi,

Has anyone tried to use gzipping and martini in a reverse proxy configuration? I.e I have two servers A and B where A acts as a proxy to B both using martini. I would like to gzip requests both internally and externally but gzipping fails at B while defer closing the gzipResponseWriter with an error:

Conn.Write wrote more than the declared Content-Length

Has anyone seen it? It seems like there is something wrong with removing Content-Length from headers logic.

Marek

PS/I will try to prepare a reproducible code soon.

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