File tree 1 file changed +8
-0
lines changed
test/fixtures/azure-fixture/src/main/java/fixture/azure
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,14 @@ public void handle(final HttpExchange exchange) throws IOException {
355
355
throw new IllegalStateException ("Got multiple deletes in a single request?" );
356
356
}
357
357
toDelete = blobName ;
358
+ } else if (Regex .simpleMatch ("DELETE /" + account + "/" + container + "/*" , line )) {
359
+ // possible alternative DELETE url, depending on which method is used in the batch client
360
+ String path = RestUtils .decodeComponent (line .split ("(\\ s|\\ ?)" )[1 ]);
361
+ String blobName = path .split (account )[1 ];
362
+ if (toDelete != null ) {
363
+ throw new IllegalStateException ("Got multiple deletes in a single request?" );
364
+ }
365
+ toDelete = blobName ;
358
366
}
359
367
}
360
368
response .append ("--" ).append (responseBoundary ).append ("--\r \n 0\r \n " );
You can’t perform that action at this time.
0 commit comments