New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http: handle Trailer headers according to RFC 7230 #23908
Comments
We don't want to export this function in |
Change https://golang.org/cl/104042 mentions this issue: |
Change https://golang.org/cl/104075 mentions this issue: |
…ttp/httpguts Introduce a common package x/net/http/httpguts which can be vendored by net/http to share detail implementations of the HTTP specification with x/net/http2. Updates golang/go#23908 Change-Id: Id5a2d51e05135436cf406c4c4d1b13fca7f84a32 Reviewed-on: https://go-review.googlesource.com/104042 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Change https://golang.org/cl/111655 mentions this issue: |
Updates http2 to x/net/http2 git rev 5f9ae10 for: http2: terminate await request cancel goroutine on conn close https://golang.org/cl/108415 http2: don't sniff Content-type in Server when X-Content-Type-Options:nosniff https://golang.org/cl/107295 http2, http/httpguts: move ValidTrailerHeader to new common package http/httpguts https://golang.org/cl/104042 all: remove "the" duplications https://golang.org/cl/94975 http2: use RFC 723x as normative reference in docs https://golang.org/cl/94555 all: use HTTPS for iana.org links https://golang.org/cl/89415 Fixes #24795 Fixes #24776 Updates #23908 Fixes #21974 Change-Id: I7985617a7dde56cc5ed8670d73b26f8307be83d6 Reviewed-on: https://go-review.googlesource.com/111655 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Change https://golang.org/cl/111875 mentions this issue: |
httplex was the original package name for shared code between net/http and x/net/http2, but its name was too specific, and http/httpguts was added later for other shared code. We discussed merging httplex into httpguts at the time, but it didn't happen earlier. This finishes the move. Updates golang/go#23908 Change-Id: Ic7d6f39e584ca579d34b5ef5ec6a0c002a38a83c Reviewed-on: https://go-review.googlesource.com/111875 Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Change https://golang.org/cl/112996 mentions this issue: |
net/lex has been merged into net/http in golang/net@cbb82b5, and bradfitz is already the primary for that. Updates golang/go#23908. Change-Id: Icf5eca0751829e26d1951ec6c0eb2d22348695e9 Reviewed-on: https://go-review.googlesource.com/112996 Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Matt Layher <mdlayher@gmail.com>
The method
declareTrailer
innet/http/server.go
does not handle Trailer headers according to RFC 7230.While the the obsoleted RFC 2616 section 14.40 states:
declareTrailer
only ignores the headers mentioned above, but RFC 7230 section 4.1.2 states:x/net/http2
already implements this behavior inValidTrailerHeader
. Maybe this method can be moved tonet/http
.The text was updated successfully, but these errors were encountered: