Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4166)

Issue 98320044: code review 98320044: net/http: don't change host header when following redirects

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by DMorsing
Modified:
9 years, 4 months ago
Reviewers:
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

net/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
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -1 line) Patch
M src/pkg/net/http/client.go View 1 2 1 chunk +8 lines, -1 line 3 comments Download
M src/pkg/net/http/client_test.go View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 7
DMorsing
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
9 years, 11 months ago (2014-05-19 18:35:34 UTC) #1
bradfitz
I don't even want to spend the mental energy reviewing this while we're in code ...
9 years, 11 months ago (2014-05-19 18:45:25 UTC) #2
DMorsing
On 2014/05/19 18:45:25, bradfitz wrote: > I don't even want to spend the mental energy ...
9 years, 11 months ago (2014-05-19 18:47:09 UTC) #3
DMorsing
ping.
9 years, 9 months ago (2014-07-20 12:43:18 UTC) #4
bradfitz
I'm not crazy about this change, but if you make the code sufficiently readable and ...
9 years, 9 months ago (2014-07-23 18:04:35 UTC) #5
DMorsing
Beginning to think that if you need this level of control over redirects, you can ...
9 years, 9 months ago (2014-07-27 15:33:42 UTC) #6
gobot
9 years, 4 months ago (2014-12-19 05:19:37 UTC) #7
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/98320044 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b