aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-18Prefer UTF8 for text reponses (fixes #263)Sven-Hendrik Haase1-0/+1
This should fix most encoding problems in most cases where text files are accessed on various locales.
2021-04-18Rename compression code references to 'archive'Sven-Hendrik Haase3-35/+35
This name more closely resembles its purpose. For instance, we also now support plain tar archives which are uncompressed but archives nonetheless.
2021-04-18Change naming of uncompressed/compressed tarballsDean Li5-23/+18
Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`
2021-04-11Separate tar archive and tar flagsDean Li5-7/+25
It used to have one flag (-r) to enable both tar archive and tar. Now it has two flags [ -r: for tar, -g: for tar archive]. Related to #451
2021-04-09Fix breadcrumbs mess on mobileAli MJ Al-Nasrawy1-1/+1
On mobile devices, 'display: block' is set for '.directory' class. While this neccessary to make the whole row for directories entry clickable, it distorts the links in breadcrumbs.
2021-04-09Fix breadcrumbs for RTL languagesAli MJ Al-Nasrawy1-3/+3
2021-04-08Avoid double-encoding file URLAli MJ Al-Nasrawy1-6/+5
Now that the '%' char itself is accepted in the file name and is encoded into '%25', this exposed a previously silent bug: `base` is already percent-encoded but it is encoded again when setting `file_url`. This produces erroneous URLs such as: '/%2523/x.y' instead of '/%23/x.y' for the path '/#/x.y'
2021-04-06Fix percent encoding for URLAli MJ Al-Nasrawy1-5/+14
Use proper percent-encoding charset for each context.
2021-04-05Avoid unneccessary syscalls for entry metadataAli MJ Al-Nasrawy1-4/+7
For non-symlink files and directories, there is no need to call `std::fs::metadata()` as the metadata are already obtained via `entry.metadata()`
2021-04-05Honor --no-symlinks option when listingAli MJ Al-Nasrawy1-1/+1
2021-03-29Move symlink symbol from html to cssAli MJ Al-Nasrawy1-2/+2
This should facilitate testing because this symbol will no longer a part of the entry text shown in html.
2021-03-28Bump depsSven-Hendrik Haase1-0/+1
2021-03-28Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase4-38/+61
2021-03-28Change start message without arguments to be a bit more clearSven-Hendrik Haase1-4/+4
2021-03-28Change default log level to WarnSven-Hendrik Haase1-1/+1
2021-03-28Better message for when provided index file doesn't existSven-Hendrik Haase1-3/+4
2021-03-28Print supported shells for completions in help commandSven-Hendrik Haase1-1/+1
2021-03-28Refactor and separate out arg handling and config handlingSven-Hendrik Haase2-91/+94
2021-03-28Generate completions with `miniserve --print-completions <shell>`Andy Freeland2-8/+18
This patch adds a `--print-completions` option to generate shell completion files at runtime. This ensures the completions are always up to date. Fixes #377.
2021-03-27Bring back the symlink symbolAli MJ Al-Nasrawy2-0/+17
2021-03-27Resolve symlinks when listingAli MJ Al-Nasrawy2-23/+3
This has the benefit of showing the size and modification date of the pointed-to file. Symlink to directories now respects '--dirs-first' option and broken symlinks don't show in directory listing.
2021-03-26Fix QR code display when using --random-routeAndy Freeland1-1/+1
Previously the QR code would not display because `/` is a 404 when using `--random-route`.
2021-03-20Switch from failure to thiserrorSven-Hendrik Haase1-28/+17
2021-03-07Add option to show hidden filesSven-Hendrik Haase3-25/+43
2021-03-07Start without countdown in case an explicit index is chosenSven-Hendrik Haase1-1/+1
2021-03-07Fix DoS issue when deliberately sending unconforming URL pathsSven-Hendrik Haase1-1/+1
2021-03-01Use CSS to configure version footer lookTamas Levai1-1/+1
2021-03-01renderer: Follow alphabetical order in package usesTamas Levai1-1/+2
2021-03-01Use structopt macros to ge crate infoTamas Levai1-13/+2
2021-03-01Fix clippy warningTamas Levai1-0/+1
2021-02-28Fix indentationTamas Levai1-6/+6
2021-02-28Add program version footerTamas Levai6-0/+52
2021-02-28Re-do the way setting multiple headers worksSven-Hendrik Haase2-17/+12
2021-02-27Multiple headers support for custom headersDean Li2-35/+32
2021-02-24Move the parsing header logic to args.rsDean Li2-21/+42
2021-02-24Allow set custom headers from CLIDean Li2-0/+33
2021-02-19Fix lintsSven-Hendrik Haase6-28/+28
2021-01-20Fix lintSven-Hendrik Haase1-2/+1
2021-01-15enable multiple file uploadMichael Hueschen1-1/+1
tested with miniserve running on linux, with browsers: - Safari on iPhone - Firefox on Linux (NixOS)
2021-01-04Fix indentationTamas Levai2-3/+3
Convert tabs to spaces.
2021-01-04Add option to list directories firstTamas Levai3-0/+16
2021-01-04Fix lintSven-Hendrik Haase1-2/+2
2020-12-28Fix lintSven-Hendrik Haase1-4/+2
2020-11-08Now compiles on stableSven-Hendrik Haase1-2/+0
2020-10-02more feedbackLukas Stabe1-2/+3
2020-10-02address feedbackLukas Stabe1-2/+11
2020-10-01restore default theme cli option and add default theme dark optionLukas Stabe6-4/+79
2020-09-30Remove actix-rtequal-l21-1/+1
2020-09-26compile scss at build timeLukas Stabe1-5/+2
2020-09-26appease cargo fmtLukas Stabe1-5/+8