Skip to content
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

Closed
wants to merge 4 commits into from

Commits on Aug 30, 2022

  1. net/http: reverseproxy: forward 1xx responses

    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
    dunglas committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    d440d19 View commit details
    Browse the repository at this point in the history
  2. fix review

    dunglas committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    c3d0e2a View commit details
    Browse the repository at this point in the history
  3. minor simplification

    dunglas committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    56dd718 View commit details
    Browse the repository at this point in the history
  4. fix typo

    dunglas committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    dab8a46 View commit details
    Browse the repository at this point in the history