Update dependencies (#5518)
This commit is contained in:
8
vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/http/common.go
generated
vendored
8
vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/http/common.go
generated
vendored
@@ -139,7 +139,7 @@ func (s *session) ApplyAuthToRequest(req *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
s.auth.setAuth(req)
|
||||
s.auth.SetAuth(req)
|
||||
}
|
||||
|
||||
func (s *session) ModifyEndpointIfRedirect(res *http.Response) {
|
||||
@@ -175,7 +175,7 @@ func (*session) Close() error {
|
||||
// AuthMethod is concrete implementation of common.AuthMethod for HTTP services
|
||||
type AuthMethod interface {
|
||||
transport.AuthMethod
|
||||
setAuth(r *http.Request)
|
||||
SetAuth(r *http.Request)
|
||||
}
|
||||
|
||||
func basicAuthFromEndpoint(ep *transport.Endpoint) *BasicAuth {
|
||||
@@ -192,7 +192,7 @@ type BasicAuth struct {
|
||||
Username, Password string
|
||||
}
|
||||
|
||||
func (a *BasicAuth) setAuth(r *http.Request) {
|
||||
func (a *BasicAuth) SetAuth(r *http.Request) {
|
||||
if a == nil {
|
||||
return
|
||||
}
|
||||
@@ -226,7 +226,7 @@ type TokenAuth struct {
|
||||
Token string
|
||||
}
|
||||
|
||||
func (a *TokenAuth) setAuth(r *http.Request) {
|
||||
func (a *TokenAuth) SetAuth(r *http.Request) {
|
||||
if a == nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user