Skip to content

Commit

Permalink
Merge pull request #190 from almirsarajcic/delete-object-status-code-fix
Browse files Browse the repository at this point in the history
Fix object deletion response status
  • Loading branch information
andyHa committed Nov 17, 2021
2 parents d6ee211 + b554b5b commit ca2b261
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 ca2b261

Please sign in to comment.