1 files changed, 3 insertions(+), 0 deletions(-)
M src/main.rs
M src/main.rs => src/main.rs +3 -0
@@ 125,6 125,9 @@ fn main() {
if path.len() > 0 && path.starts_with("/") {
path = &path[1..];
}
+ if path.ends_with("/") {
+ path = &path[..(path.len() - 1)];
+ }
let path = path;
if path.len() == 0 {