Change information
Commit message:
net/http: apply Server.MaxHeaderValueCount towards HTTP/1 trailer headers
This is a follow-up to CL 795460, in which Server.MaxHeaderValueCount
was added, allowing a Server to limit the number of headers that it is
willing to accept.
In CL 795460, Server.MaxHeaderValueCount is applied to trailer headers
only for HTTP/2 servers, mostly because of the existing code structure
around Server.MaxHeaderBytes. This CL makes it so that
Server.MaxHeaderValueCount is applied to trailer headers in HTTP/1 too.
For #79936
Change-Id: I0ab9d1ac03fe05474b6d4d36c16586396a6a6964
Files:
- M src/net/http/request.go
- M src/net/http/response.go
- M src/net/http/serve_test.go
- M src/net/http/transfer.go
Change size: S
Delta: 4 files changed, 23 insertions(+), 16 deletions(-)
Branch: refs/heads/master