diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-05 14:58:43 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-05 14:58:43 +0100 |
commit | 2964234e15d06da95429451e7a9e6f7a4dfa8d0f (patch) | |
tree | 7af5f5c28a805749ce7144007c140d56cbe317da | |
parent | 004eb51c2e7c4515121c69b05c66cae1f8c546da (diff) |
Send the URL with Content-Type=text/plain
-rwxr-xr-x | fshare.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() |