aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-05 14:58:43 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-05 14:58:43 +0100
commit2964234e15d06da95429451e7a9e6f7a4dfa8d0f (patch)
tree7af5f5c28a805749ce7144007c140d56cbe317da
parent004eb51c2e7c4515121c69b05c66cae1f8c546da (diff)
Send the URL with Content-Type=text/plain
-rwxr-xr-xfshare.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fshare.py b/fshare.py
index c909a26..188f62f 100755
--- a/fshare.py
+++ b/fshare.py
@@ -224,6 +224,7 @@ class FShareRequestHandler(hs.BaseHTTPRequestHandler):
reply = ('https://%s/%s' % (host, fname)).encode('ascii')
self.send_response(retcode)
+ self.send_header('Content-Type', 'text/plain')
self.send_header('Content-Length', '%d' % len(reply))
self.end_headers()