Skip to content

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

Open
@Romanowiczmarek

Description

@Romanowiczmarek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions