aboutsummaryrefslogtreecommitdiffstats
path: root/src/listing.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make clippy happySven-Hendrik Haase2025-02-061-5/+2
|
* Use Self where possibleadamnemecek2025-01-031-2/+2
|
* Add missing `|` to `USERINFO` setcyqsimon2024-09-211-1/+2
|
* Remove non-compliant `BASE` setcyqsimon2024-09-211-2/+1
|
* Make URL encoding fully WHATWG-compliantcyqsimon2024-09-151-4/+14
|
* Remove explicit dependency on httpSven-Hendrik Haase2024-06-091-2/+4
| | | | We now use the one supplied by actix-web.
* Bump depsSven-Hendrik Haase2024-03-281-1/+0
|
* Merge pull request #1329 from dyc3/disable-indexingSven-Hendrik Haase2024-02-011-0/+8
|\ | | | | add `--disable-indexing` cli flag to completely disable directory indexing
| * move check for disable_indexingCarson McManus2024-01-301-9/+8
| |
| * add `--disable-indexing` cli flag to completely disable directory indexingCarson McManus2024-01-291-0/+9
| |
* | Refactor errorscyqsimon2024-01-291-2/+2
|/ | | | | - Split `ContexualError` into `StartError` & `RuntimeError` - Made sure every `RuntimeError` variant has an accurate status code
* Tighter code formattingSven-Hendrik Haase2024-01-131-3/+0
|
* Clean up default order functionSven-Hendrik Haase2024-01-131-15/+10
| | | | I removed the stringly typing as we already have enums for this that we can make use of.
* Set default sorting order and method with argumentselandsborough2024-01-131-2/+10
|
* Merge pull request #1285 from cyqsimon/listing-crash-fixSven-Hendrik Haase2024-01-031-6/+11
|\ | | | | Prevent illegal request path from crashing program
| * Prevent illegal request path from crashing programcyqsimon2023-12-061-6/+11
| |
* | Remove header Content-Encoding when archivingWhyme Lyu2023-12-111-1/+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.
* Use distinct query type for file op APIscyqsimon2023-09-051-7/+6
|
* Switched from using AsRef<str> to using &UriSilux2023-02-221-7/+7
| | | | | | | | I honestly just switched the definition and then frantically changed small things based on rusts error messages, but it passes fmt, clippy and tests so I think it's fine. This allow a bit finer control over the URI, but is honetly a bit insignificant.
* Fix more lintsSven-Hendrik Haase2022-12-311-1/+1
|
* Fix lintsSven-Hendrik Haase2022-12-191-1/+1
|
* Upgrade clap to v4Sven-Hendrik Haase2022-10-121-1/+1
|
* Tidy up some importsSven-Hendrik Haase2022-09-201-3/+1
|
* Add support for README.txt and README filesGaurav-Lab-PC2022-09-191-5/+12
|
* Merge branch 'master' into qrcodecyqsimon2022-09-151-2/+2
|\
| * Fix typosKian-Meng Ang2022-09-141-2/+2
| | | | | | | | Found via `codespell -L crate`.
* | Remove leftover `dbg!`cyqsimon2022-09-011-1/+0
| |
* | Fix drop-down QR codecyqsimon2022-09-011-17/+9
| |
* | Fix rustfmt complaintscyqsimon2022-08-221-6/+13
| |
* | Move QR code page style to `style.scss`cyqsimon2022-08-221-15/+8
| |
* | Use `mime` for content typecyqsimon2022-08-221-1/+1
| |
* | Switch to `qrcode` libcyqsimon2022-08-221-36/+5
|/
* Simplify README code a bitSven-Hendrik Haase2022-08-141-35/+8
|
* Edit Readme struct to remove render boolGaurav2022-08-141-19/+8
|
* Make Readme structGaurav2022-08-141-14/+47
|
* Add `--readme` info and reformatGaurav2022-08-141-1/+0
|
* Satisfy cargo fmtGaurav2022-08-141-9/+17
|
* Replace `markdown` by `comrak`; Render support for nested dirsGaurav2022-08-141-2/+6
| | | | | | | * README.md will be rendered at currently visiting directory instead of just in the root. * Rendering is now done by comrak, which seems heavy but has a lot more features.
* Add `--readme` flag to cliGaurav2022-08-141-2/+2
|
* Add support for readme renderingGaurav2022-08-141-1/+7
|
* Use `mime` for all content type declarationscyqsimon2022-07-211-15/+13
|
* Create directory (#781)Sheepy2022-06-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability to make directory Frontend for making directories Fix potential security vulnerability (CWE-23) Add tests Update README.md Disallow using parent directories altogether Fix formatting Fix clippy warnings Address review comments Update README.md Change `making` to `creation` Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> Have make directory flag require file upload flag Address review comments * Disallow uploading files and making directories through symlinks when disabled * Add test * Clippy formatting changes * Add test doc comment
* Fix new clippy lintsSven-Hendrik Haase2022-05-231-1/+1
|
* Allow clippy::format_push_stringSven-Hendrik Haase2022-05-061-3/+5
| | | | I think if we followed the lint the code would be less readable for no real benefit.
* Merge 'jikstra/feat_route_prefix' #682Ali MJ Al-Nasrawy2022-02-061-5/+3
|\
| * Implement --route-prefix to set specific route prefixjikstra2021-12-291-5/+3
| |
* | update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy2022-02-051-4/+3
| |
* | Bump actix-web to v4.0-beta.15jikstra2021-12-281-3/+3
|/ | | | Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* Merge branch 'master' into feat_raw_modeJikstra2021-09-101-17/+3
|\
| * extract_query_parameters(): avoid clone and simplifyAli MJ Al-Nasrawy2021-08-311-15/+3
| | | | | | | | Signe-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>