Skip to content

net/http: make HTTP/1.x handlers able to sent undeclared trailers like HTTP/2 #15754

Closed
@bradfitz

Description

@bradfitz

The HTTP/2 server permits setting Trailers mid-Handler without predeclaring them the "Trailer" header by setting "Trailer:Foo" = "Bar". Since a colon isn't allowed in a trailer, that magic prefix is safe.

Do the same for HTTP/1.x. (and thus also in httptest.ResponseRecorder).

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions