From 77c932e19eb85f601a9525cf939f227738bc635e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 25 Jan 2025 19:20:55 +0000 Subject: [PATCH] uploads: Actually send an empty response Signed-off-by: Michael Tremer --- src/web/uploads.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/web/uploads.py b/src/web/uploads.py index 1313a1f7..23a33a55 100644 --- a/src/web/uploads.py +++ b/src/web/uploads.py @@ -142,8 +142,9 @@ class APIv1DetailHandler(base.APIMixin, base.BaseHandler): except ValueError as e: raise base.APIError(errno.EINVAL, "%s" % e) from e - # Send a positive response - self.finish({}) + # Send no response + self.set_status(204) + self.finish() @base.negotiate async def delete(self, uuid): @@ -163,5 +164,6 @@ class APIv1DetailHandler(base.APIMixin, base.BaseHandler): async with await self.db.transaction(): await upload.delete() - # Send a positive response - self.finish({}) + # Send no response + self.set_status(204) + self.finish() -- 2.47.3