Skip to content

Commit 6b874a0

Browse files
authored
Merge branch 'cloudflare:main' into main
2 parents ff4ba87 + 1a44740 commit 6b874a0

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/registry/r2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export async function getUploadState(
120120
throw new InternalError();
121121
}
122122

123-
if (!verifyHash && stateStrHash !== verifyHash) {
123+
if (verifyHash !== undefined && stateStrHash !== verifyHash) {
124124
return new RangeError(stateStrHash, stateObject);
125125
}
126126

@@ -719,6 +719,7 @@ export class R2Registry implements Registry {
719719

720720
const upload = this.env.REGISTRY.resumeMultipartUpload(state.registryUploadId, state.uploadId);
721721
await upload.abort();
722+
await this.env.REGISTRY.delete(getRegistryUploadsPath(state));
722723
return true;
723724
}
724725

src/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ v2Router.get("/_catalog", async (req, env: Env) => {
4343
{
4444
headers: {
4545
Link: `${url.protocol}//${url.hostname}${url.pathname}?n=${n ?? 1000}&last=${response.cursor ?? ""}; rel=next`,
46+
"Content-Type": "application/json",
4647
},
4748
},
4849
);

0 commit comments

Comments
 (0)