diff options
| author | 徐志伟 <juwan.xu@qq.com> | 2021-03-30 23:25:56 +0000 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2021-03-31 03:51:51 +0000 |
| commit | c93cd8614965c6c114671fabf82b69fbd952f52f (patch) | |
| tree | 0bcb891f48781c83274dbeb3e0be2ba4f7d9f7a3 | |
| parent | 1d8abb3417af401ff6938c557ce30a8234bd2ce5 (diff) | |
| download | go-git-c93cd8614965c6c114671fabf82b69fbd952f52f.tar.gz | |
net/http: use consistent case in URL in names
Change-Id: Iff5074713e1a4484c04b8628fb2611b6d4e154c7
GitHub-Last-Rev: bb0861bbbe31bc2bbda667c05402b5ef886a762b
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>
| -rw-r--r-- | src/net/http/client_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/client_test.go b/src/net/http/client_test.go index d90b4841c6..3b3d98ff9a 100644 --- a/src/net/http/client_test.go +++ b/src/net/http/client_test.go @@ -257,12 +257,12 @@ func TestClientRedirects(t *testing.T) { t.Fatalf("Get error: %v", err) } res.Body.Close() - finalUrl := res.Request.URL.String() + finalURL := res.Request.URL.String() if e, g := "<nil>", fmt.Sprintf("%v", err); e != g { t.Errorf("with custom client, expected error %q, got %q", e, g) } - if !strings.HasSuffix(finalUrl, "/?n=15") { - t.Errorf("expected final url to end in /?n=15; got url %q", finalUrl) + if !strings.HasSuffix(finalURL, "/?n=15") { + t.Errorf("expected final url to end in /?n=15; got url %q", finalURL) } if e, g := 15, len(lastVia); e != g { t.Errorf("expected lastVia to have contained %d elements; got %d", e, g) |
