aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/share_mode.py
diff options
context:
space:
mode:
authorwhew <73732390+whew@users.noreply.github.com>2021-05-31 12:13:58 +0000
committerGitHub <noreply@github.com>2021-05-31 12:13:58 +0000
commiteeacd8c5078b6ac2206308ff9e0a6a861b49fee6 (patch)
treeba4d2e82b666ab607d33d3f0f1695bf21bbb5930 /cli/onionshare_cli/web/share_mode.py
parent56dd2d0b84207f350a2bf5725755d21f3785ec62 (diff)
parent2c73c0b1b01f6f1375e4c9a07dd328ae088d0d72 (diff)
downloadonionshare-eeacd8c5078b6ac2206308ff9e0a6a861b49fee6.tar.gz
onionshare-eeacd8c5078b6ac2206308ff9e0a6a861b49fee6.zip
Merge branch 'develop' into add_security_headers
Diffstat (limited to 'cli/onionshare_cli/web/share_mode.py')
-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 acd295ac..1dd9af13 100644
--- a/cli/onionshare_cli/web/share_mode.py
+++ b/cli/onionshare_cli/web/share_mode.py
@@ -134,8 +134,8 @@ class ShareModeWeb(SendBaseModeWeb):
The web app routes for sharing files
"""
- @self.web.app.route("/", defaults={"path": ""})
- @self.web.app.route("/<path:path>")
+ @self.web.app.route("/", defaults={"path": ""}, methods=["GET"], provide_automatic_options=False)
+ @self.web.app.route("/<path:path>", methods=["GET"], provide_automatic_options=False)
def index(path):
"""
Render the template for the onionshare landing page.
@@ -159,7 +159,7 @@ class ShareModeWeb(SendBaseModeWeb):
return self.render_logic(path)
- @self.web.app.route("/download")
+ @self.web.app.route("/download", methods=["GET"], provide_automatic_options=False)
def download():
"""
Download the zip file.