mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net/http: use consistent case in URL in names
Change-Id: Iff5074713e1a4484c04b8628fb2611b6d4e154c7
GitHub-Last-Rev: bb0861bbbe
GitHub-Pull-Request: golang/go#45294
Reviewed-on: https://go-review.googlesource.com/c/go/+/305772
Reviewed-by: Ben Shi <powerman1st@163.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ben Shi <powerman1st@163.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
1d8abb3417
commit
c93cd86149
1 changed files with 3 additions and 3 deletions
|
|
@ -257,12 +257,12 @@ func TestClientRedirects(t *testing.T) {
|
||||||
t.Fatalf("Get error: %v", err)
|
t.Fatalf("Get error: %v", err)
|
||||||
}
|
}
|
||||||
res.Body.Close()
|
res.Body.Close()
|
||||||
finalUrl := res.Request.URL.String()
|
finalURL := res.Request.URL.String()
|
||||||
if e, g := "<nil>", fmt.Sprintf("%v", err); e != g {
|
if e, g := "<nil>", fmt.Sprintf("%v", err); e != g {
|
||||||
t.Errorf("with custom client, expected error %q, got %q", e, g)
|
t.Errorf("with custom client, expected error %q, got %q", e, g)
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(finalUrl, "/?n=15") {
|
if !strings.HasSuffix(finalURL, "/?n=15") {
|
||||||
t.Errorf("expected final url to end in /?n=15; got url %q", finalUrl)
|
t.Errorf("expected final url to end in /?n=15; got url %q", finalURL)
|
||||||
}
|
}
|
||||||
if e, g := 15, len(lastVia); e != g {
|
if e, g := 15, len(lastVia); e != g {
|
||||||
t.Errorf("expected lastVia to have contained %d elements; got %d", e, g)
|
t.Errorf("expected lastVia to have contained %d elements; got %d", e, g)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue