Fix logic in WebServerRequest::get_path.

This commit is contained in:
Relintai 2022-07-02 21:10:48 +02:00
parent 6f10e05c32
commit 8787b9cd7f

View File

@ -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);
}