Jonas Diemer
Jonas Diemer
Thanks a lot! I've found e.g. https://github.com/fondberg/easee_hass/issues/120 (in case someone else stumbles on this issue). I got confused by the README.md mentioning only sensors. Maybe it would help to update...
I agree with @metalelf0 for out-of-the box behavior on MacOS - took me a while to realize why pasting wouldn't work (with an otherwise well-working vimrc). But I can also...
Hi, looking for an opportunity for some first Rust experience, I've taken a stab: https://github.com/jonasdiemer/miniserve/tree/restrict-upload-dir Please consider it a rough prototype - esp. the area in [file_upload.rs](https://github.com/jonasdiemer/miniserve/blob/9e358d7d2534197e5b6170626d5b8f2add76705f/src/file_upload.rs#L176) doesn't feel very...
Sure, let me have a look into testing in Rust :)
@svenstaro thanks for the suggestion. Fixed an issue (running tests is actually helpful :)) and added a test similar to existing one `uploading_files_is_prevented`.
Reworked the solution to use PathBuf and with this also fixed subdirectories not working. Edit: improved (hopefully) the style a bit using iter().any(). @svenstaro I'd appreciate some feedback (esp. on...
> Hey, I think we're almost there now. Only some tiny stuff now. I'd like to put this into the next miniserve release, too! Do you have some time to...
Fixed formatting and also sanitized paths so that specification of `-u ./some_dir' also works.
Looks like CICD on Windows fails, might have to do with the tests that include a dash in the directory name. Unfortunately, I don't have a windows machine to test...
As CI has test cases 3+4 failing, I am not sure it's related to the dot. Rather, it could be related to sub-directories (and possibly different path separator for Windows)....