From: Michael Tremer Date: Sat, 25 Jan 2025 19:20:55 +0000 (+0000) Subject: uploads: Actually send an empty response X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c932e19eb85f601a9525cf939f227738bc635e;p=pbs.git uploads: Actually send an empty response Signed-off-by: Michael Tremer --- 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()