Skip to content

Commit

Permalink
Fix object deletion response status
Browse files Browse the repository at this point in the history
S3 returns 204 No Content instead of 200 Success status.
  • Loading branch information
almirsarajcic committed Nov 17, 2021
1 parent d6ee211 commit b554b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ninja/S3Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ private void deleteObject(final WebContext webContext, final Bucket bucket, fina
StoredObject object = bucket.getObject(id);
object.delete();

webContext.respondWith().status(HttpResponseStatus.OK);
webContext.respondWith().status(HttpResponseStatus.NO_CONTENT);
signalObjectSuccess(webContext);
}

Expand Down

0 comments on commit b554b5b

Please sign in to comment.