Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename `StartError` -> `StartupError` | cyqsimon | 2024-01-30 | 2 | -11/+12 |
| | |||||
* | Refactor errors | cyqsimon | 2024-01-29 | 7 | -134/+142 |
| | | | | | - Split `ContexualError` into `StartError` & `RuntimeError` - Made sure every `RuntimeError` variant has an accurate status code | ||||
* | Fix inaccurate uses of `sanitize_path` | cyqsimon | 2024-01-26 | 2 | -5/+6 |
| | |||||
* | Reformat args help | Sven-Hendrik Haase | 2024-01-16 | 1 | -3/+5 |
| | |||||
* | Add option for compress response | zuisong | 2024-01-16 | 3 | -1/+20 |
| | |||||
* | Compress response using `actix_web::middleware::compress` | Dean Li | 2024-01-14 | 1 | -0/+1 |
| | |||||
* | Tighter code formatting | Sven-Hendrik Haase | 2024-01-13 | 1 | -3/+0 |
| | |||||
* | Clean up default order function | Sven-Hendrik Haase | 2024-01-13 | 3 | -41/+19 |
| | | | | I removed the stringly typing as we already have enums for this that we can make use of. | ||||
* | Merge pull request #1308 from ↵ | Sven-Hendrik Haase | 2024-01-13 | 4 | -4/+59 |
|\ | | | | | | | | | ElliottLandsborough/set_sorting_order_with_arguments Set default sorting order and method with arguments | ||||
| * | Set default sorting order and method with arguments | elandsborough | 2024-01-13 | 4 | -4/+59 |
| | | |||||
* | | Use tokio::fs instead of std::fs to enable async file operations (fixes #445) | Sven-Hendrik Haase | 2024-01-13 | 1 | -8/+9 |
| | | |||||
* | | Fix formatting | Sven-Hendrik Haase | 2024-01-13 | 1 | -8/+14 |
| | | |||||
* | | Ignore readonly metadata and handle errors instead | Victor | 2024-01-11 | 1 | -11/+15 |
|/ | |||||
* | Merge pull request #1285 from cyqsimon/listing-crash-fix | Sven-Hendrik Haase | 2024-01-03 | 1 | -6/+11 |
|\ | | | | | Prevent illegal request path from crashing program | ||||
| * | Prevent illegal request path from crashing program | cyqsimon | 2023-12-06 | 1 | -6/+11 |
| | | |||||
* | | Merge pull request #1290 from 5long/remove-content-encoding | Sven-Hendrik Haase | 2024-01-03 | 2 | -10/+0 |
|\ \ | | | | | | | Remove header Content-Encoding when archiving | ||||
| * | | Remove header Content-Encoding when archiving | Whyme Lyu | 2023-12-11 | 2 | -10/+0 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Content-Encoding is a representation header which kinda means "same content, presented differently to different clients" or "encoded & decoded on-the-fly, guided by content negotiation". In the case of downloading an archive, MDN docs explicitly says that (quoted from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding): > If the original media is encoded in some way (e.g. a zip file) then this > information would not be included in the Content-Encoding header. Thus this patch. Also fixes !1187. | ||||
* / | Update actix-multipart to 0.6.1 | Sven-Hendrik Haase | 2024-01-03 | 2 | -3/+3 |
|/ | |||||
* | Better help for -u | Sven-Hendrik Haase | 2023-11-09 | 1 | -0/+5 |
| | |||||
* | Fix incorrect conditional compilation | Sven-Hendrik Haase | 2023-10-10 | 1 | -3/+1 |
| | |||||
* | Merge pull request #1228 from cyqsimon/upload-refactor | Sven-Hendrik Haase | 2023-09-24 | 6 | -132/+156 |
|\ | | | | | Minor refactor on upload code | ||||
| * | Fix clippy complaints | cyqsimon | 2023-09-05 | 1 | -1/+1 |
| | | |||||
| * | Fix incorrect usage of app data extractor | cyqsimon | 2023-09-05 | 1 | -1/+1 |
| | | | | | | | | - `Data` extractor can only be used when app data is wrapped with `Data` | ||||
| * | Minor code style refactors | cyqsimon | 2023-09-05 | 2 | -21/+27 |
| | | |||||
| * | Use distinct query type for file op APIs | cyqsimon | 2023-09-05 | 3 | -18/+20 |
| | | |||||
| * | rename `file_upload` to `file_op` | cyqsimon | 2023-09-05 | 2 | -2/+4 |
| | | | | | | | | - This is in preparation for adding deletion code | ||||
| * | Rewrite `contains_symlink` | cyqsimon | 2023-09-05 | 2 | -29/+41 |
| | | |||||
| * | Make file util functions generic | cyqsimon | 2023-07-10 | 1 | -4/+4 |
| | | |||||
| * | Create shared file utiity module | cyqsimon | 2023-07-10 | 4 | -86/+88 |
| | | |||||
* | | Fix MIPS compile | Sven-Hendrik Haase | 2023-08-21 | 1 | -3/+2 |
| | | |||||
* | | Fix arg help formatting | Sven-Hendrik Haase | 2023-08-21 | 1 | -4/+9 |
| | | |||||
* | | Merge pull request #1179 from proudmuslim-dev/master | Sven-Hendrik Haase | 2023-08-21 | 2 | -3/+23 |
|\ \ | | | | | | | Add ability to read auth from file | ||||
| * | | Add file content example to `--auth-file` argument | proudmuslim-dev | 2023-08-03 | 1 | -1/+5 |
| | | | |||||
| * | | Update src/args.rs | proudmuslim-dev | 2023-08-03 | 1 | -1/+1 |
| | | | | | | | | | Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> | ||||
| * | | Add ability to read auth from file | Proudmuslim | 2023-07-21 | 2 | -3/+19 |
| |/ | |||||
* | | Adjust from feedback | Norberto Lopes | 2023-08-07 | 1 | -1/+6 |
| | | | | | | | | | | - remove info logging - add comment to clarify logic | ||||
* | | Add pretty urls | Norberto Lopes | 2023-08-06 | 3 | -1/+39 |
| | | | | | | | | | | | | | | | | | | | | This adds a new flag namely `--pretty-urls` that when enabled will serve the equivalent `.html` if it exists. Very much the same approach that [`netlify` uses](https://docs.netlify.com/site-deploys/post-processing/). It can be quite useful when having hrefs like `/about` serve `/about.html`. | ||||
* | | use a char instead of string literal | Dashon Wells | 2023-08-02 | 1 | -1/+1 |
| | | |||||
* | | Run cargo fmt to fix formatting | Dashon Wells | 2023-08-02 | 1 | -2/+3 |
| | | |||||
* | | Encode single quote in directory path name | Dashon Wells | 2023-08-02 | 1 | -1/+2 |
| | | |||||
* | | Fix error page wrapping | Bao Trinh | 2023-07-26 | 1 | -2/+10 |
| | | | | | | | | | | | | Error page was incorrectly comparing the full content-type header of error responses against `text/plain`, so no error pages were being wrapped by `map_error_page`. | ||||
* | | Consolidate javascript and add comments | Bao Trinh | 2023-07-26 | 1 | -35/+29 |
| | | |||||
* | | use grass include macro; remove build.rs | Bao Trinh | 2023-07-21 | 2 | -5/+5 |
| | | |||||
* | | remove commented code | Bao Trinh | 2023-07-20 | 1 | -2/+0 |
| | | |||||
* | | Separate color schemes into separate files | Bao Trinh | 2023-07-12 | 2 | -3/+29 |
| | | |||||
* | | simplify theme selection using data attributes | Bao Trinh | 2023-07-11 | 1 | -13/+12 |
|/ | |||||
* | Fix ANSI color codes are printed when not a tty | Sven-Hendrik Haase | 2023-07-05 | 1 | -12/+14 |
| | | | | Fixes #1095. | ||||
* | Allow parameters to be provided via env vars | Sven-Hendrik Haase | 2023-07-05 | 1 | -32/+78 |
| | | | | Fixes #829. | ||||
* | Remove atty dep | Sven-Hendrik Haase | 2023-07-02 | 1 | -4/+4 |
| | | | | We can now use the stabilized IsTerminal trait. | ||||
* | Switch from deprecated get_if_addrs to if-addrs | Sven-Hendrik Haase | 2023-04-20 | 1 | -1/+1 |
| | | | | Fixes #1079. |