summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-02-21 10:32:29 -0800
committerMicah Lee <micah@micahflee.com>2021-02-21 10:32:29 -0800
commit06f82897462d1844f7a814644ab9092191868595 (patch)
treea6cb64cd7e0bf0fd8272bcb1195e8e79b30c6449
parent2b705e2e4add0fed0dcac72bb8707ff372486d45 (diff)
parent3b997163920b9dba22edf58216d484fc5b6ea334 (diff)
downloadonionshare-06f82897462d1844f7a814644ab9092191868595.tar.gz
onionshare-06f82897462d1844f7a814644ab9092191868595.zip
Merge branch 'develop' of github.com:micahflee/onionshare into develop
-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)