aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/http/common_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2019-07-29 17:09:20 +0200
committerGitHub <noreply@github.com>2019-07-29 17:09:20 +0200
commitb294aa1351a9c1e9388d7901033596514cf5eaa9 (patch)
treec56f72099d5fcf8010d74e5e8149508c47cc2001 /plumbing/transport/http/common_test.go
parent1edb992dbc419a0767b1cf3a524b0d35529799f5 (diff)
parent361f21d9cc514d79924325c53d37bd097be3904d (diff)
downloadgo-git-b294aa1351a9c1e9388d7901033596514cf5eaa9.tar.gz
Merge pull request #1197 from hypnoce/master
Make http.AuthMethod setAuth public. Fixes #1196
Diffstat (limited to 'plumbing/transport/http/common_test.go')
-rw-r--r--plumbing/transport/http/common_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/http/common_test.go b/plumbing/transport/http/common_test.go
index 8b300e8..d9e0636 100644
--- a/plumbing/transport/http/common_test.go
+++ b/plumbing/transport/http/common_test.go
@@ -64,7 +64,7 @@ func (s *ClientSuite) TestNewTokenAuth(c *C) {
// Check header is set correctly
req, err := http.NewRequest("GET", "https://github.com/git-fixtures/basic", nil)
c.Assert(err, Equals, nil)
- a.setAuth(req)
+ a.SetAuth(req)
c.Assert(req.Header.Get("Authorization"), Equals, "Bearer OAUTH-TOKEN-TEXT")
}