From 004eb51c2e7c4515121c69b05c66cae1f8c546da Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 5 Jan 2021 14:52:02 +0100 Subject: Send OK instead of No Content. There actually is content - the URL. --- fshare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fshare.py b/fshare.py index 12b432d..c909a26 100755 --- a/fshare.py +++ b/fshare.py @@ -207,7 +207,7 @@ class FShareRequestHandler(hs.BaseHTTPRequestHandler): outpath = '/'.join((self.server.data_dir, fname)) if os.path.exists(outpath): - retcode = HTTPStatus.NO_CONTENT + retcode = HTTPStatus.OK os.remove(temp_path) else: retcode = HTTPStatus.CREATED -- cgit v1.2.3