aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix lintsSven-Hendrik Haase2024-09-122-3/+3
|
* Bump reqwest to v0.12Sven-Hendrik Haase2024-06-092-2/+2
|
* Remove explicit dependency on httpSven-Hendrik Haase2024-06-092-2/+2
| | | | We now use the one supplied by actix-web.
* tweak test assertionsCarson McManus2024-01-301-1/+5
|
* add test for disabled archivesCarson McManus2024-01-301-0/+28
|
* add unit testsCarson McManus2024-01-301-0/+31
|
* Make default sorting test more meaningfulSven-Hendrik Haase2024-01-131-12/+27
|
* Clean up default order functionSven-Hendrik Haase2024-01-132-17/+13
| | | | I removed the stringly typing as we already have enums for this that we can make use of.
* Fix formattingSven-Hendrik Haase2024-01-131-1/+1
|
* Merge pull request #1308 from ↵Sven-Hendrik Haase2024-01-132-1/+45
|\ | | | | | | | | ElliottLandsborough/set_sorting_order_with_arguments Set default sorting order and method with arguments
| * Set default sorting order and method with argumentselandsborough2024-01-132-1/+45
| |
* | Use tokio::fs instead of std::fs to enable async file operations (fixes #445)Sven-Hendrik Haase2024-01-131-2/+2
|/
* Skip newline test case on WindowsSven-Hendrik Haase2024-01-071-0/+1
|
* Fix serving files with a newline (fixes #1294)Sven-Hendrik Haase2024-01-071-0/+1
|
* Merge pull request #1228 from cyqsimon/upload-refactorSven-Hendrik Haase2023-09-241-36/+36
|\ | | | | Minor refactor on upload code
| * Fix clippy complaintscyqsimon2023-09-051-36/+36
| |
* | Fix formattingSven-Hendrik Haase2023-08-211-6/+10
| |
* | Merge pull request #1179 from proudmuslim-dev/masterSven-Hendrik Haase2023-08-212-0/+65
|\ \ | | | | | | Add ability to read auth from file
| * | Add tests for `--auth-file` flagProudmuslim2023-08-082-0/+65
| |/
* / Add pretty urlsNorberto Lopes2023-08-061-0/+18
|/ | | | | | | | | | 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`.
* Add EC key support (closes #1080)Sven-Hendrik Haase2023-04-167-104/+157
|
* Added tests and small fixesSilux2023-02-251-3/+19
| | | | | | ...discovered when writing the tests. Ran rustfmt, clippy::all, cargo test, everything passed and I hope the tests I wrote are good. Now with 100% less forgotten debug logs!
* Make clippy happySven-Hendrik Haase2022-12-301-1/+1
|
* Run cargo fmtSven-Hendrik Haase2022-12-303-7/+5
|
* Fix lintsSven-Hendrik Haase2022-12-199-46/+44
|
* Merge pull request #907 from svenstaro/dependabot/cargo/fake-tty-0.3.1Sven-Hendrik Haase2022-09-201-1/+1
|\ | | | | Bump fake-tty from 0.2.0 to 0.3.1
| * Fix `fake-tty` API breaking changecyqsimon2022-09-191-1/+1
| | | | | | | | It's difficult to create a more trivial commit. Possible, but difficult.
* | Merge pull request #858 from jonasdiemer/restrict-upload-dirSven-Hendrik Haase2022-09-201-2/+89
|\ \ | | | | | | Added option restrict-upload-dir
| * | Return 403 instead of 500 for upload errsJonas Diemer2022-09-191-1/+1
| | |
| * | Switched to using Path in test to handle windows platform.Jonas Diemer2022-09-191-12/+12
| | |
| * | Fixing (hopefully) issue with path on WindowsJonas Diemer2022-09-181-7/+5
| | |
| * | Fixed formattingJonas Diemer2022-09-181-3/+4
| | |
| * | trying to handle paths in a way that works for windowsJonas Diemer2022-09-181-8/+12
| | |
| * | Test dir with starting -Jonas Diemer2022-09-181-1/+1
| | |
| * | sanitize allowed upload paths for cases like ./dirJonas Diemer2022-09-181-0/+1
| | |
| * | Use argument -u instead of --allowed-upload-dirJonas Diemer2022-09-181-5/+5
| | |
| * | check status code when restricted; fix formattingJonas Diemer2022-09-181-14/+12
| | |
| * | test case with two allowed dirsJonas Diemer2022-09-181-35/+39
| | |
| * | Moved use to globalJonas Diemer2022-09-181-2/+1
| | |
| * | renaming of option for clarity in testJonas Diemer2022-09-181-5/+5
| | |
| * | Renamed option for more clarityJonas Diemer2022-09-181-4/+4
| | |
| * | Avoid error message during testing of restrictedJonas Diemer2022-09-181-2/+2
| | |
| * | added test cases for sub directoryJonas Diemer2022-09-181-5/+10
| | |
| * | Added positive test for --restrict-upload-dirJonas Diemer2022-09-181-0/+45
| | |
| * | Removed redundant test code, fixed commentsJonas Diemer2022-09-181-11/+5
| | |
| * | Test that uploads fail if outside restricted dirJonas Diemer2022-09-181-0/+38
| |/
* / Add support for README.txt and README filesGaurav-Lab-PC2022-09-191-10/+12
|/
* Merge branch 'master' into qrcodecyqsimon2022-09-152-2/+130
|\
| * Merge pull request #902 from kianmeng/fix-typosSven-Hendrik Haase2022-09-151-2/+2
| |\ | | | | | | Fix typos
| | * Fix typosKian-Meng Ang2022-09-141-2/+2
| | | | | | | | | | | | Found via `codespell -L crate`.