diff options
author | Miguel Jacq <mig@mig5.net> | 2021-05-11 08:14:49 +1000 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-05-11 08:14:49 +1000 |
commit | dc4eaffa97af88abd6862100ffa8f3c5a6cd1f90 (patch) | |
tree | 224b147188fe92511c0528a05425e00e21cf3280 /cli/onionshare_cli/web/website_mode.py | |
parent | 97922d33d0808e73de7ed463c5efbd8c400b98c7 (diff) | |
download | onionshare-dc4eaffa97af88abd6862100ffa8f3c5a6cd1f90.tar.gz onionshare-dc4eaffa97af88abd6862100ffa8f3c5a6cd1f90.zip |
Website mode doesn't need to support POST as a method
Diffstat (limited to 'cli/onionshare_cli/web/website_mode.py')
-rw-r--r-- | cli/onionshare_cli/web/website_mode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/onionshare_cli/web/website_mode.py b/cli/onionshare_cli/web/website_mode.py index 29b2cc9b..5ab1b184 100644 --- a/cli/onionshare_cli/web/website_mode.py +++ b/cli/onionshare_cli/web/website_mode.py @@ -37,8 +37,8 @@ class WebsiteModeWeb(SendBaseModeWeb): The web app routes for sharing a website """ - @self.web.app.route("/", defaults={"path": ""}, methods=["GET", "POST"], provide_automatic_options=False) - @self.web.app.route("/<path:path>", methods=["GET", "POST"], provide_automatic_options=False) + @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 path_public(path): return path_logic(path) |