~vpzom/crepo

b03d44d39c5493a97e198859084b885f1e9251cc — Colin Reeder 3 years ago d9dfa4b
Ignore a single trailing slash
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 {