mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
conformance: fix http status code for cross-repository mounting
This commit is contained in:
@@ -636,9 +636,10 @@ func (is *ImageStore) NewBlobUpload(repo string) (string, error) {
|
||||
}
|
||||
|
||||
u := uuid.String()
|
||||
blobUploadPath := is.BlobUploadPath(repo, u)
|
||||
file, err := os.OpenFile(blobUploadPath, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0600)
|
||||
|
||||
blobUploadPath := is.BlobUploadPath(repo, u)
|
||||
|
||||
file, err := os.OpenFile(blobUploadPath, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return "", errors.ErrRepoNotFound
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user