update vendor
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
19a32db84d
commit
94d1cfbfbf
10501 changed files with 2307943 additions and 29279 deletions
2
vendor/github.com/genuinetools/reg/registry/basictransport.go
generated
vendored
2
vendor/github.com/genuinetools/reg/registry/basictransport.go
generated
vendored
|
@ -15,7 +15,7 @@ type BasicTransport struct {
|
|||
|
||||
// RoundTrip defines the round tripper for basic auth transport.
|
||||
func (t *BasicTransport) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
if strings.HasPrefix(req.URL.String(), t.URL) {
|
||||
if strings.HasPrefix(req.URL.String(), t.URL) && req.Header.Get("Authorization") == "" {
|
||||
if t.Username != "" || t.Password != "" {
|
||||
req.SetBasicAuth(t.Username, t.Password)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue