From 2964234e15d06da95429451e7a9e6f7a4dfa8d0f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 5 Jan 2021 14:58:43 +0100 Subject: Send the URL with Content-Type=text/plain --- fshare.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3