Browse Source

Ignore a single trailing slash

master
Colin Reeder 2 years ago
parent
commit
b03d44d39c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main.rs

+ 3
- 0
src/main.rs View File

@@ -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 {


Loading…
Cancel
Save