summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-02-21 10:34:03 -0800
committerMicah Lee <micah@micahflee.com>2021-02-21 10:34:03 -0800
commitfbf1091bb8fc37fce91e2acd897fbe66eb6ac46a (patch)
tree7699540d77f6f3685d652ee2f64f1838d4744c31 /cli
parent4e79aacd1e892afab7dd1578ffdc75dedd1c0c6f (diff)
parent06f82897462d1844f7a814644ab9092191868595 (diff)
downloadonionshare-fbf1091bb8fc37fce91e2acd897fbe66eb6ac46a.tar.gz
onionshare-fbf1091bb8fc37fce91e2acd897fbe66eb6ac46a.zip
Merge branch 'develop' into final-2.3
Diffstat (limited to 'cli')
-rw-r--r--cli/onionshare_cli/web/share_mode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/onionshare_cli/web/share_mode.py b/cli/onionshare_cli/web/share_mode.py
index 6d29eaff..821f4978 100644
--- a/cli/onionshare_cli/web/share_mode.py
+++ b/cli/onionshare_cli/web/share_mode.py
@@ -200,10 +200,10 @@ class ShareModeWeb(SendBaseModeWeb):
r.headers.set("Content-Encoding", "gzip")
r.headers.set("Content-Length", self.filesize)
filename_dict = {
- 'filename': unidecode(basename),
- 'filename*': "UTF-8''%s" % url_quote(basename)
+ "filename": unidecode(basename),
+ "filename*": "UTF-8''%s" % url_quote(basename),
}
- r.headers.set("Content-Disposition", "inline", **filename_dict)
+ r.headers.set("Content-Disposition", "attachment", **filename_dict)
r = self.web.add_security_headers(r)
# guess content type
(content_type, _) = mimetypes.guess_type(basename, strict=False)