net/http: make HTTP/1.x handlers able to sent undeclared trailers like HTTP/2 #15754
Labels
Milestone
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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).
The text was updated successfully, but these errors were encountered: