fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
04476ff5a9
commit
d265da7356
@ -114,7 +114,7 @@ func DockerHeaders(userAgent string, metaHeaders http.Header) []transport.Reques
|
|||||||
return modifiers
|
return modifiers
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPClient returns a HTTP client structure which uses the given transport
|
// HTTPClient returns an HTTP client structure which uses the given transport
|
||||||
// and contains the necessary headers for redirected requests
|
// and contains the necessary headers for redirected requests
|
||||||
func HTTPClient(transport http.RoundTripper) *http.Client {
|
func HTTPClient(transport http.RoundTripper) *http.Client {
|
||||||
return &http.Client{
|
return &http.Client{
|
||||||
|
@ -95,7 +95,7 @@ func cloneRequest(r *http.Request) *http.Request {
|
|||||||
return r2
|
return r2
|
||||||
}
|
}
|
||||||
|
|
||||||
// RoundTrip changes a HTTP request's headers to add the necessary
|
// RoundTrip changes an HTTP request's headers to add the necessary
|
||||||
// authentication-related headers
|
// authentication-related headers
|
||||||
func (tr *authTransport) RoundTrip(orig *http.Request) (*http.Response, error) {
|
func (tr *authTransport) RoundTrip(orig *http.Request) (*http.Response, error) {
|
||||||
// Authorization should not be set on 302 redirect for untrusted locations.
|
// Authorization should not be set on 302 redirect for untrusted locations.
|
||||||
|
@ -29,7 +29,7 @@ type ImgData struct {
|
|||||||
// indicates the registry's version and whether the registry claims to be a
|
// indicates the registry's version and whether the registry claims to be a
|
||||||
// standalone registry.
|
// standalone registry.
|
||||||
type PingResult struct {
|
type PingResult struct {
|
||||||
// Version is the registry version supplied by the registry in a HTTP
|
// Version is the registry version supplied by the registry in an HTTP
|
||||||
// header
|
// header
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
// Standalone is set to true if the registry indicates it is a
|
// Standalone is set to true if the registry indicates it is a
|
||||||
|
Loading…
Reference in New Issue
Block a user