aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-05 14:52:02 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-05 14:52:02 +0100
commit004eb51c2e7c4515121c69b05c66cae1f8c546da (patch)
tree2159962a4c7c88496ce2f99467b655f09b093289
parent34b42c8820ad76c8d52d76d130b5445e31c1ec33 (diff)
Send OK instead of No Content.
There actually is content - the URL.
-rwxr-xr-xfshare.py2
1 files changed, 1 insertions, 1 deletions
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