Descriptionnet/http: don't change host header when following redirects
If a client used the feature of having a different host from the value in req.URL.Host, the Client would change the host when following redirects.
If we're following a local redirect, keep sending the same Host header.
Fixes issue 8027.
Patch Set 1 #Patch Set 2 : diff -r 80c5e57e2ec3 https://code.google.com/p/go/ #Patch Set 3 : diff -r 80c5e57e2ec3 https://code.google.com/p/go/ #Patch Set 4 : diff -r abe528ee4a57 https://code.google.com/p/go/ #Patch Set 5 : diff -r abe528ee4a57 https://code.google.com/p/go/ #
Total comments: 3
MessagesTotal messages: 7
|