]> Cypherpunks repositories - gostls13.git/commit
net/http/httptrace: expose request headers for http/1.1
authorMeir Fischer <meirfischer@gmail.com>
Sun, 8 Oct 2017 19:25:28 +0000 (15:25 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Jun 2018 16:48:29 +0000 (16:48 +0000)
commit7c4c87c015e566b7b172c613ef4fcc9669d936f6
tree3433a76eaaa1a6a0641738c5ac179fb060075eb6
parent1d303a00862eb4222640806ece5608bb1314a597
net/http/httptrace: expose request headers for http/1.1

Some headers, which are set or modified by the http library,
are not written to the standard http.Request.Header and are
not included as part of http.Response.Request.Header.

Exposing all headers alleviates this problem.

This is not a complete solution to 19761 since it does not have http/2 support.

Updates #19761

Change-Id: Ie8d4f702f4f671666b120b332378644f094e288b
Reviewed-on: https://go-review.googlesource.com/67430
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/header.go
src/net/http/httptrace/trace.go
src/net/http/request.go
src/net/http/response.go
src/net/http/server.go
src/net/http/transfer.go
src/net/http/transport_test.go