Skip to content

Exclude the Trailer header from 304 responses? #2842

Closed
@ghost

Description

Including the Trailer header field with responses that don't have Transfer-Encoding: chunked causes some (overly strict?) proxies to drop the response e.g. IBM Bluemix sends back a 502 top the client in this scenario, even though Node/Express responds with a 304.

I brought up the issue with the Express team and it was suggested that since Node strips out the body for a 304, it might also make sense to strip out the Trailer header from Node. See: expressjs/express#2749

Interested what you all think about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions