• Sina Siadat's avatar
    net/http/httputil: remove proxied headers mentioned in connection-tokens · 03cff2e1
    Sina Siadat authored
    RFC 2616, section 14.10 says:
    
    >>>
    HTTP/1.1 proxies MUST parse the Connection header field before a message
    is forwarded and, for each connection-token in this field, remove any
    header field(s) from the message with the same name as the
    connection-token. Connection options are signaled by the presence of a
    connection-token in the Connection header field, not by any
    corresponding additional header field(s), since the additional header
    field may not be sent if there are no parameters associated with that
    connection option.
    <<<
    
    The same requirement was included in RFC 7230, section 6.1.
    
    Fixes #16875
    
    Change-Id: I57ad4a4a17775537c8810d0edd7de1604317b5fa
    Reviewed-on: https://go-review.googlesource.com/27970Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    03cff2e1
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...