aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-03Update actix-multipart to 0.6.1Sven-Hendrik Haase2-3/+3
2023-12-11Remove header Content-Encoding when archivingWhyme Lyu2-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.
2023-12-06Prevent illegal request path from crashing programcyqsimon1-6/+11
2023-11-09Better help for -uSven-Hendrik Haase1-0/+5
2023-10-10Fix incorrect conditional compilationSven-Hendrik Haase1-3/+1
2023-09-05Fix clippy complaintscyqsimon1-1/+1
2023-09-05Fix incorrect usage of app data extractorcyqsimon1-1/+1
- `Data` extractor can only be used when app data is wrapped with `Data`
2023-09-05Minor code style refactorscyqsimon2-21/+27
2023-09-05Use distinct query type for file op APIscyqsimon3-18/+20
2023-09-05rename `file_upload` to `file_op`cyqsimon2-2/+4
- This is in preparation for adding deletion code
2023-09-05Rewrite `contains_symlink`cyqsimon2-29/+41
2023-08-21Fix MIPS compileSven-Hendrik Haase1-3/+2
2023-08-21Fix arg help formattingSven-Hendrik Haase1-4/+9
2023-08-07Adjust from feedbackNorberto Lopes1-1/+6
- remove info logging - add comment to clarify logic
2023-08-06Add pretty urlsNorberto Lopes3-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`.
2023-08-03Add file content example to `--auth-file` argumentproudmuslim-dev1-1/+5
2023-08-03Update src/args.rsproudmuslim-dev1-1/+1
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
2023-08-02use a char instead of string literalDashon Wells1-1/+1
2023-08-02Run cargo fmt to fix formattingDashon Wells1-2/+3
2023-08-02Encode single quote in directory path nameDashon Wells1-1/+2
2023-07-26Fix error page wrappingBao Trinh1-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`.
2023-07-26Consolidate javascript and add commentsBao Trinh1-35/+29
2023-07-21Add ability to read auth from fileProudmuslim2-3/+19
2023-07-21use grass include macro; remove build.rsBao Trinh2-5/+5
2023-07-20remove commented codeBao Trinh1-2/+0
2023-07-12Separate color schemes into separate filesBao Trinh2-3/+29
2023-07-11simplify theme selection using data attributesBao Trinh1-13/+12
2023-07-10Make file util functions genericcyqsimon1-4/+4
2023-07-10Create shared file utiity modulecyqsimon4-86/+88
2023-07-05Fix ANSI color codes are printed when not a ttySven-Hendrik Haase1-12/+14
Fixes #1095.
2023-07-05Allow parameters to be provided via env varsSven-Hendrik Haase1-32/+78
Fixes #829.
2023-07-02Remove atty depSven-Hendrik Haase1-4/+4
We can now use the stabilized IsTerminal trait.
2023-04-20Switch from deprecated get_if_addrs to if-addrsSven-Hendrik Haase1-1/+1
Fixes #1079.
2023-04-16Add EC key support (closes #1080)Sven-Hendrik Haase1-1/+3
2023-03-01Split up wget testsSven-Hendrik Haase1-23/+35
2023-02-25Added tests and small fixesSilux1-5/+68
...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!
2023-02-22Switched from using AsRef<str> to using &UriSilux2-16/+17
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.
2023-02-22Make the wget footer click to copySilux1-1/+5
2023-02-22Cleaned up thewget_footer function and generated commandSilux1-18/+14
The command now has slightly more concise flags, the cut_dir flag gets omitted when it would be zero, if downloading root put files in a folder named the title of the page, use match claues instead of ifs, bit more concise I think
2023-02-21Fix the wget footerSilux1-7/+11
...by having it use the absolute url instead of the breadcrumbs
2023-01-22Bump more depsSven-Hendrik Haase1-1/+1
2022-12-31Fix more lintsSven-Hendrik Haase1-1/+1
2022-12-30Run cargo fmtSven-Hendrik Haase2-33/+31
2022-12-19Fix lintsSven-Hendrik Haase6-27/+27
2022-12-06[fix] Sorting breaks subdir downloadingVamist1-1/+1
- Small check in render.rs make_link_with_trailing_slash to return nothing if link is empty, instead of adding a /
2022-11-11Bump depsSven-Hendrik Haase1-1/+5
2022-11-11Fix clap 4 behavior when allowing duplicate argsSven-Hendrik Haase1-12/+3
2022-11-10RefactoringIvkinStanislav1-4/+2
2022-11-10Update datetime formatIvkinStanislav1-1/+1
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
2022-10-23Change DateTime formats.ivkin1-11/+6