Fri, 26 Feb 2021 00:20:24 +0100 mod_http_file_share: Skip removal of nothing
Kim Alvefur <zash@zash.se> [Fri, 26 Feb 2021 00:20:24 +0100] rev 11410
mod_http_file_share: Skip removal of nothing In case none of the expired files could be deleted then it's a waste of an API call to try to remove any of the metadata at all.
Thu, 25 Feb 2021 23:58:08 +0100 mod_http_file_share: Remove correct entries when not all expired files were deleted
Kim Alvefur <zash@zash.se> [Thu, 25 Feb 2021 23:58:08 +0100] rev 11409
mod_http_file_share: Remove correct entries when not all expired files were deleted If any of the expired files could not be deleted then we should not forget about that, we should complain loudly and try again. The code got this backwards and would have removed only the entries referring to still existing files. Test procedure: 1. Upload a file 2. chown root:root http_file_share/ 3. In uploads.list, decrease 'when' enough to ensure expiry 4. Reload mod_http_file_share 5. Should see an error in the logs about failure to delete the file 6. Should see that the metadata in uploads.list is still there 7. chown http_file_share/ back to the previous owner 8. Reload mod_http_file_share 9. Should see logs about successful removal of expired file 10. Should see that the metadata in uploads.list is gone 11. Should see that the file was deleted
Thu, 25 Feb 2021 13:12:07 +0100 mod_http_errors: Add some comments
Kim Alvefur <zash@zash.se> [Thu, 25 Feb 2021 13:12:07 +0100] rev 11408
mod_http_errors: Add some comments
Thu, 25 Feb 2021 12:59:28 +0100 mod_http_errors: Add some silly variations for the '/' page
Kim Alvefur <zash@zash.se> [Thu, 25 Feb 2021 12:59:28 +0100] rev 11407
mod_http_errors: Add some silly variations for the '/' page > "You can do anything in XMPP!" > as a reminiscence of zombo.com -- jonas’ > A study in simplicity. Prosody tagline
Wed, 24 Feb 2021 16:35:56 +0100 mod_http_file_share: Fix traceback on missing file-type
Kim Alvefur <zash@zash.se> [Wed, 24 Feb 2021 16:35:56 +0100] rev 11406
mod_http_file_share: Fix traceback on missing file-type attempt to index a nil value (local 'filetype') casued by the :gsub call
Tue, 23 Feb 2021 19:52:57 +0100 mod_csi_simple: Add command to test importance algorithm on stream of stanzas
Kim Alvefur <zash@zash.se> [Tue, 23 Feb 2021 19:52:57 +0100] rev 11405
mod_csi_simple: Add command to test importance algorithm on stream of stanzas This won't include behavior provided by extra modules tho.
Tue, 23 Feb 2021 16:07:41 +0100 mod_http: Improve message for missing 'route'
Kim Alvefur <zash@zash.se> [Tue, 23 Feb 2021 16:07:41 +0100] rev 11404
mod_http: Improve message for missing 'route' This was the late night early draft text, thought I had amended this but apparently I forgot.
Sun, 21 Feb 2021 01:00:00 +0100 mod_http: Warn if app is missing 'route'
Kim Alvefur <zash@zash.se> [Sun, 21 Feb 2021 01:00:00 +0100] rev 11403
mod_http: Warn if app is missing 'route' Makes no sense to have a http module with no handlers Would have helped me when I accidentally module:provides("http", { GET = handler; })
Tue, 23 Feb 2021 02:56:49 +0100 mod_http_file_share: Allow credentials via CORS (needed for auth token)
Kim Alvefur <zash@zash.se> [Tue, 23 Feb 2021 02:56:49 +0100] rev 11402
mod_http_file_share: Allow credentials via CORS (needed for auth token)
Mon, 30 Dec 2019 09:50:59 +0100 mod_http: Allow modifying CORS header list via :provides API
Kim Alvefur <zash@zash.se> [Mon, 30 Dec 2019 09:50:59 +0100] rev 11401
mod_http: Allow modifying CORS header list via :provides API E.g. module:provides("http", { cors = { headers = { Accept = true; Expect = false; }; }; route = { ... }; }); Case might be weird.
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 tip