-
|
I noticed this issue (svenstaro/miniserve#1450) in the miniserve crate, I searched for the root cause and i found that actix-files refuses to serve files having a colon at the end of any of its path segments actix-web/actix-files/src/path_buf.rs Lines 47 to 63 in e1da110 I looked at the older commits to see what was the reason for implementing this filter and I found this Lines 98 to 143 in d8f27e9 I'm curious to know why this check is in place and if it is possible to remove or change it to allow serving files starting/ending with these characters |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I'm not the original author so this is just my thought, but colon has a special meaning/not allowed in some context even on Unix, e.g. on some applications or filesystems. The actix-web application may cause unwanted behavior because of it. |
Beta Was this translation helpful? Give feedback.
I'm not the original author so this is just my thought, but colon has a special meaning/not allowed in some context even on Unix, e.g. on some applications or filesystems. The actix-web application may cause unwanted behavior because of it.
I think this is reasonable for compatibility and portability, and anyway it should be unsual usecase in the real world I believe.