Skip to content

Strip headers listed in Connection header per RFC 7230 Section 6.1 #449

@mcollina

Description

@mcollina

Summary

Per RFC 7230 Section 6.1, a proxy MUST parse the Connection header and remove any headers listed within it before forwarding the request to the upstream server.

Currently, @fastify/reply-from only strips the Connection header itself but does not strip headers named inside it.

Example

Request from client:

GET / HTTP/1.1
Host: localhost
X-Custom-Header: some-value
Connection: X-Custom-Header

Expected behavior: Both Connection and X-Custom-Header should be stripped before forwarding.

Current behavior: Only Connection is stripped; X-Custom-Header is forwarded to upstream.

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions