Skip to content

Commit

Permalink
Merge pull request moby#14046 from mattmoor/token-investigation
Browse files Browse the repository at this point in the history
Unconditionally use AuthTransport.
  • Loading branch information
stevvooe committed Jun 26, 2015
2 parents dd40889 + c231510 commit c7ece73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions registry/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ func NewSession(client *http.Client, authConfig *cliconfig.AuthConfig, endpoint
}
}

if endpoint.Version == APIVersion1 {
client.Transport = AuthTransport(client.Transport, authConfig, alwaysSetBasicAuth)
}
// Annotate the transport unconditionally so that v2 can
// properly fallback on v1 when an image is not found.
client.Transport = AuthTransport(client.Transport, authConfig, alwaysSetBasicAuth)

jar, err := cookiejar.New(nil)
if err != nil {
Expand Down

0 comments on commit c7ece73

Please sign in to comment.