onionshare/cli/onionshare_cli/web
Saptak S 5a7ab3c12e
Adds exception for ConnectionError in chat mode during shutdown
The way flask-socketio stops a connection when running using
eventlet is by raising SystemExit to abort all the processes.
Hence the connections are closed and no response is returned
So I am just catching the ConnectionError to check if it was
chat mode, in which case it's okay.
2021-09-02 18:57:21 +05:30
..
__init__.py Update copyright year to 2021 2021-02-22 13:35:14 -08:00
chat_mode.py Merge branch 'fix_405_error_and_other_methods' of https://github.com/mig5/onionshare into mig5-fix_405_error_and_other_methods 2021-05-25 16:27:26 -07:00
receive_mode.py Move the 'supports_file_requests' attribute into the actual modes rather than the Web class 2021-05-11 09:25:22 +10:00
send_base_mode.py Move the 'supports_file_requests' attribute into the actual modes rather than the Web class 2021-05-11 09:25:22 +10:00
share_mode.py Register the 405 error handler properly. Enforce the appropriate methods for each route (GET or POST only, with OPTIONS disabled). Add tests for invalid methods. Add a friendlier 500 internal server error handler 2021-05-10 11:23:44 +10:00
web.py Adds exception for ConnectionError in chat mode during shutdown 2021-09-02 18:57:21 +05:30
website_mode.py Website mode doesn't need to support POST as a method 2021-05-11 08:14:49 +10:00