diff --git a/src/http/request.cpp b/src/http/request.cpp index cffaf1d..bce12a0 100644 --- a/src/http/request.cpp +++ b/src/http/request.cpp @@ -103,7 +103,7 @@ bool Request::try_strip_slash() if (url.length() == 0 || url == "/") return false; bool ret = false; // While loop because the user can just pass /url///////////... - while (url.back() == '/') + while (url.back() == '/' && url.length() != 1) { url.pop_back(); ret = true;