• Brad Fitzpatrick's avatar
    http: include Host header in requests, even with proxies · e4b94224
    Brad Fitzpatrick authored
    A user pointed out that Go didn't work with their
    corp proxy, always throwing 400 Bad Request errors.
    
    Looking at the RFC 2616, Host is always required,
    even with proxies.
    
    The old code assumed that writing an absolute URL
    in the first line of an HTTP request implied
    that the Host header was no longer necessary.
    
    Double-checked behavior with curl.
    
    R=golang-dev, dsymonds
    CC=golang-dev
    https://golang.org/cl/4539075
    e4b94224
Name
Last commit
Last update
..
cgi Loading commit data...
fcgi Loading commit data...
httptest Loading commit data...
pprof Loading commit data...
spdy Loading commit data...
testdata Loading commit data...
Makefile Loading commit data...
chunked.go Loading commit data...
client.go Loading commit data...
client_test.go Loading commit data...
cookie.go Loading commit data...
cookie_test.go Loading commit data...
dump.go Loading commit data...
export_test.go Loading commit data...
fs.go Loading commit data...
fs_test.go Loading commit data...
header.go Loading commit data...
header_test.go Loading commit data...
lex.go Loading commit data...
lex_test.go Loading commit data...
persist.go Loading commit data...
proxy_test.go Loading commit data...
range_test.go Loading commit data...
readrequest_test.go Loading commit data...
request.go Loading commit data...
request_test.go Loading commit data...
requestwrite_test.go Loading commit data...
response.go Loading commit data...
response_test.go Loading commit data...
responsewrite_test.go Loading commit data...
reverseproxy.go Loading commit data...
reverseproxy_test.go Loading commit data...
serve_test.go Loading commit data...
server.go Loading commit data...
status.go Loading commit data...
transfer.go Loading commit data...
transport.go Loading commit data...
transport_test.go Loading commit data...
triv.go Loading commit data...
url.go Loading commit data...
url_test.go Loading commit data...