Skip to content

Commit ea3d754

Browse files
authored
fix: delete status code checking (#93)
1 parent 0327476 commit ea3d754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class Store {
8181
async delete(key: string) {
8282
const res = await this.client.makeRequest({ key, method: HTTPMethod.DELETE, storeName: this.name })
8383

84-
if (res.status !== 200 && res.status !== 404) {
84+
if (res.status !== 200 && res.status !== 204 && res.status !== 404) {
8585
throw new BlobsInternalError(res.status)
8686
}
8787
}

0 commit comments

Comments
 (0)