Merge pull request #6258 from coolljt0725/fix_typo

server/download.go: Fix a typo in log
This commit is contained in:
Jesse Gross 2024-08-09 17:19:48 -07:00 committed by GitHub
commit 9b53e39d8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,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