File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1138,7 +1138,7 @@ describe('delete', () => {
11381138 test ( 'Deletes from the blob store' , async ( ) => {
11391139 const mockStore = new MockFetch ( ) . delete ( {
11401140 headers : { authorization : `Bearer ${ edgeToken } ` } ,
1141- response : new Response ( null , { status : 202 } ) ,
1141+ response : new Response ( null , { status : 204 } ) ,
11421142 url : `${ edgeURL } /${ siteID } /production/${ key } ` ,
11431143 } )
11441144
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export class Store {
7676 async delete ( key : string ) {
7777 const res = await this . client . makeRequest ( { key, method : HTTPMethod . DELETE , storeName : this . name } )
7878
79- if ( ! [ 200 , 202 , 404 ] . includes ( res . status ) ) {
79+ if ( ! [ 200 , 204 , 404 ] . includes ( res . status ) ) {
8080 throw new BlobsInternalError ( res . status )
8181 }
8282 }
You can’t perform that action at this time.
0 commit comments