server/download.go: Fix a typo in log
Signed-off-by: Jitang Lei <leijitang@outlook.com>
This commit is contained in:
parent
5b3a21b578
commit
7b61eba471
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
|
||||||
|
|
||||||
newOpts.CheckRedirect = func(req *http.Request, via []*http.Request) error {
|
newOpts.CheckRedirect = func(req *http.Request, via []*http.Request) error {
|
||||||
if len(via) > 10 {
|
if len(via) > 10 {
|
||||||
return errors.New("maxium redirects exceeded (10) for directURL")
|
return errors.New("maximum redirects exceeded (10) for directURL")
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the hostname is the same, allow the redirect
|
// if the hostname is the same, allow the redirect
|
||||||
|
|
Loading…
Reference in a new issue