mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
test and fix http redirect handling
BUG=2197242 R=r DELTA=16 (16 added, 0 deleted, 0 changed) OCL=35878 CL=35882
This commit is contained in:
parent
36ccbbdfc6
commit
21b41bec83
2 changed files with 16 additions and 0 deletions
|
|
@ -198,6 +198,7 @@ func Get(url string) (r *Response, finalURL string, err os.Error) {
|
|||
err = os.ErrorString(fmt.Sprintf("%d response missing Location header", r.StatusCode));
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
finalURL = url;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue