-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/httputil: forward 1xx responses in ReverseProxy #53164
Conversation
This PR (HEAD: 902f8a7) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/409536 to see it. Tip: You can toggle comments from me using the |
902f8a7
to
aa23135
Compare
This PR (HEAD: aa23135) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/409536 to see it. Tip: You can toggle comments from me using the |
Message from Rhys Hiltner: Patch Set 2: Run-TryBot+1 Code-Review+1 (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 2: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Damien Neil: Patch Set 2: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
This PR (HEAD: 3f2415f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/409536 to see it. Tip: You can toggle comments from me using the |
Message from Kévin Dunglas: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
4fe9581
to
30ee65f
Compare
This PR (HEAD: 30ee65f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/409536 to see it. Tip: You can toggle comments from me using the |
30ee65f
to
c3fe318
Compare
Message from Kévin Dunglas: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
This PR (HEAD: 7a6b718) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/409536 to see it. Tip: You can toggle comments from me using the |
Message from Damien Neil: Patch Set 5: Run-TryBot+1 Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 5: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 5: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Damien Neil: Patch Set 5: Auto-Submit+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Dmitri Shuralyov: Patch Set 6: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Dmitri Shuralyov: Patch Set 6: Auto-Submit+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Dmitri Shuralyov: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Support for 1xx responses has recently been merged in net/http (golang#42597). As discussed in this CL (https://go-review.googlesource.com/c/go/+/269997/comments/1ff70bef_c25a829a), support for forwarding 1xx responses in ReverseProxy has been extracted in this separate patch. According to RFC 7231, "a proxy MUST forward 1xx responses unless the proxy itself requested the generation of the 1xx response". Consequently, all received 1xx responses are automatically forwarded as long as the underlying transport supports ClientTrace.Got1xxResponse. Fixes golang#26088 Fixes golang#51914
7a6b718
to
dab8a46
Compare
This PR (HEAD: dab8a46) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/409536 to see it. Tip: You can toggle comments from me using the |
Message from Kévin Dunglas: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from hopehook: Patch Set 7: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Message from Gopher Robot: Patch Set 7: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/409536. |
Support for 1xx responses has recently been merged in net/http (CL 269997). As discussed in this CL (https://go-review.googlesource.com/c/go/+/269997/comments/1ff70bef_c25a829a), support for forwarding 1xx responses in ReverseProxy has been extracted in this separate patch. According to RFC 7231, "a proxy MUST forward 1xx responses unless the proxy itself requested the generation of the 1xx response". Consequently, all received 1xx responses are automatically forwarded as long as the underlying transport supports ClientTrace.Got1xxResponse. Fixes #26088 Fixes #51914 Change-Id: I3a35ea023b798bfe56b7fb8696d5a49695229cfd GitHub-Last-Rev: dab8a46 GitHub-Pull-Request: #53164 Reviewed-on: https://go-review.googlesource.com/c/go/+/409536 Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Rhys Hiltner <rhys@justin.tv> Run-TryBot: hopehook <hopehook@golangcn.org>
This PR is being closed because golang.org/cl/409536 has been merged. |
Support for 1xx responses has recently been merged in net/http (CL 269997). As discussed in this CL (https://go-review.googlesource.com/c/go/+/269997/comments/1ff70bef_c25a829a), support for forwarding 1xx responses in ReverseProxy has been extracted in this separate patch. According to RFC 7231, "a proxy MUST forward 1xx responses unless the proxy itself requested the generation of the 1xx response". Consequently, all received 1xx responses are automatically forwarded as long as the underlying transport supports ClientTrace.Got1xxResponse. Fixes #26088 Fixes #51914 Change-Id: I3a35ea023b798bfe56b7fb8696d5a49695229cfd GitHub-Last-Rev: dab8a461fb65b547306cae9b4c664e60020a8fa6 GitHub-Pull-Request: golang/go#53164 Reviewed-on: https://go-review.googlesource.com/c/go/+/409536 Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Rhys Hiltner <rhys@justin.tv> Run-TryBot: hopehook <hopehook@golangcn.org>
Support for 1xx responses has recently been merged in
net/http (CL 269997).
As discussed in this CL
(https://go-review.googlesource.com/c/go/+/269997/comments/1ff70bef_c25a829a),
support for forwarding 1xx responses in ReverseProxy has been extracted
in this separate patch.
According to RFC 7231, "a proxy MUST forward 1xx responses unless the
proxy itself requested the generation of the 1xx response".
Consequently, all received 1xx responses are automatically forwarded as long as the
underlying transport supports ClientTrace.Got1xxResponse.
Fixes #26088
Fixes #51914