aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/send_base_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/send_base_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/send_base_mode.py')
-rw-r--r--cli/onionshare_cli/web/send_base_mode.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/onionshare_cli/web/send_base_mode.py b/cli/onionshare_cli/web/send_base_mode.py
index d269dc69..27de598a 100644
--- a/cli/onionshare_cli/web/send_base_mode.py
+++ b/cli/onionshare_cli/web/send_base_mode.py
@@ -52,6 +52,10 @@ class SendBaseModeWeb:
# This tracks the history id
self.cur_history_id = 0
+ # Whether or not we can send REQUEST_INDIVIDUAL_FILE_STARTED
+ # and maybe other events when requests come in to this mode
+ self.supports_file_requests = True
+
self.define_routes()
self.init()
@@ -207,10 +211,6 @@ class SendBaseModeWeb:
history_id = self.cur_history_id
self.cur_history_id += 1
- # Only GET requests are allowed, any other method should fail
- if request.method != "GET":
- return self.web.error405(history_id)
-
self.web.add_request(
self.web.REQUEST_INDIVIDUAL_FILE_STARTED,
path,