mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-23 01:19:20 +01:00
Fix logic in WebServerRequest::get_path.
This commit is contained in:
parent
6f10e05c32
commit
8787b9cd7f
@ -277,7 +277,7 @@ String WebServerRequest::get_path(const bool beginning_slash, const bool end_sla
|
||||
path += '/';
|
||||
}
|
||||
|
||||
if (!end_slash && path.size() > 1) {
|
||||
if (!end_slash && path.length() > 1) {
|
||||
path.resize(path.size() - 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user