fix(go): Fix breakage in unsigned URLs

This affected the public instance which is still running without URL
signing. Should add some monitoring!
This commit is contained in:
Vincent Ambo 2019-08-08 17:47:46 +01:00 committed by Vincent Ambo
parent 3e6d519c1f
commit 575c9a7007

View File

@ -328,7 +328,7 @@ func constructLayerUrl(cfg *config, digest string) (string, error) {
opts.Expires = time.Now().Add(5 * time.Minute)
return storage.SignedURL(cfg.bucket, object, &opts)
} else {
return ("https://storage.googleapis.com" + cfg.bucket + "/" + object), nil
return ("https://storage.googleapis.com/" + cfg.bucket + "/" + object), nil
}
}