Miguel Jacq
2618e89eda
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
Miguel Jacq
c6ccd4de57
Remove unnecessary cleanup_filenames appending in the CompressThread. Ensure we also remove the temp dir that a Zip file is made within, by setting the temp dir in ZipWriter as a variable
2021-05-04 16:42:23 +10:00
Miguel Jacq
04019389da
Move the cleanup() function from Onionshare class to Web class, so that the list of files to be cleaned up is always available (needed for website temp files)
2021-05-04 16:21:42 +10:00
Micah Lee
0a6056e5e6
Fix flake8 issues found in cli
2021-04-29 17:13:05 -07:00
Saptak Sengupta
059a4425bd
Merge pull request #1327 from micahflee/1306_customization
...
Allow custom title for each onion service
2021-04-28 14:43:10 +05:30
Micah Lee
1543bb38d2
Show the custom title in all modes
2021-04-12 18:15:51 -04:00
Saptak S
729cf2ef86
Fixes content-length for the range requests logic
2021-04-12 22:57:11 +05:30
Saptak S
157ffc9ba5
Fixes parameters in the test function
2021-04-12 22:57:09 +05:30
Saptak S
4a7c062dbd
Reviving the old range request PR
...
This commit basically just adds the codes from the PR
https://github.com/micahflee/onionshare/pull/804/commits
on the newly structured and refactored code and also
fixes import dependencies and changed any code that was
relevant with the new code of onionshare
2021-04-12 22:57:08 +05:30
Micah Lee
2a7d9dbd51
Update copyright year to 2021
2021-02-22 13:35:14 -08:00
Micah Lee
c0c4b3da16
Set content-disposition to attachment for /download, to always force a download
2021-02-21 10:22:54 -08:00
Saptak S
41ce85b153
Updates the unicode logic in share_mode code as well
2021-01-31 17:08:47 +05:30
whew
393ce284c0
list.sort intsead of sorted(list)
2020-12-22 04:42:29 +00:00
Micah Lee
c949a731bb
Stop passing status_url_path to render denied template, to avoid exception
2020-12-13 10:48:16 -08:00
Micah Lee
f4abcf1be9
Add onionshare CLI to cli folder, move GUI to desktop folder, and start refactoring it to work with briefcase
2020-10-12 22:40:55 -07:00