25 Commits

Author SHA1 Message Date
Micah Lee
5f17b47d1a Fix permission denied error in Windows, which was introduced using tempfile.NamedTemporaryFile, by using a TemporaryDirectory instead 2021-12-21 14:28:23 -08:00
Micah Lee
6c72e9e7a5 Fix CLI tests 2021-12-01 21:01:32 -08:00
Micah Lee
2ff5f53c69 Explicitly cleanup temp files and dirs 2021-12-01 20:34:54 -08:00
Micah Lee
926359de3c Use NamedTemporaryFile instead of TemporaryFile, to fix crash when sharing one file 2021-12-01 20:10:51 -08:00
Micah Lee
9663f78147 Use high level tempfile classes that clean up after themselves 2021-11-18 20:03:18 -08:00
Saptak S
19da3d73a3 Removes trailing slash from directories inside directories 2021-09-04 20:41:22 +05:30
Saptak Sengupta
4f69e387e0 Merge pull request #1399 from easyteacher/develop
Make last_modified and if_date timezone-aware (Fix #1398)
2021-09-04 00:13:12 +05:30
Fushan Wen
8baad0eeb5 Make last_modified and if_date timezone-aware
Fix #1398
2021-09-03 00:07:48 +08:00
whew
8c7e75f194 Merge branch 'develop' into add_security_headers 2021-05-31 12:13:58 +00:00
whew
4e335800a5 Update share_mode.py 2021-05-13 08:15:17 +00:00
Miguel Jacq
92027345d0 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
7092e4ebee 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
ff5e73a2ae 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
cfbf07b903 Fix flake8 issues found in cli 2021-04-29 17:13:05 -07:00
Saptak Sengupta
8f9d21f783 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
3d9ca3f1ec Show the custom title in all modes 2021-04-12 18:15:51 -04:00
Saptak S
453795a373 Fixes content-length for the range requests logic 2021-04-12 22:57:11 +05:30
Saptak S
dbb13e6a43 Fixes parameters in the test function 2021-04-12 22:57:09 +05:30
Saptak S
a36e90eeaf 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
4f5f75cc25 Update copyright year to 2021 2021-02-22 13:35:14 -08:00
Micah Lee
65115cdfb2 Set content-disposition to attachment for /download, to always force a download 2021-02-21 10:22:54 -08:00
Saptak S
c8e7e06a46 Updates the unicode logic in share_mode code as well 2021-01-31 17:08:47 +05:30
whew
11d2069567 list.sort intsead of sorted(list) 2020-12-22 04:42:29 +00:00
Micah Lee
9bb853756a Stop passing status_url_path to render denied template, to avoid exception 2020-12-13 10:48:16 -08:00
Micah Lee
a54f99adf6 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