From ea009ff869e14d587f84f5974a864688a5498b3f Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 21 Dec 2022 15:12:12 +0100 Subject: [PATCH] Use String.length() instead of String.size() in WebServerRequest::setup_url_stack(). --- modules/web/http/web_server_request.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web/http/web_server_request.cpp b/modules/web/http/web_server_request.cpp index d0c9f5985..ccde8c54a 100644 --- a/modules/web/http/web_server_request.cpp +++ b/modules/web/http/web_server_request.cpp @@ -285,14 +285,14 @@ void WebServerRequest::setup_url_stack() { while ((pos = path.find("/")) != -1) { st = path.substr(0, pos); - if (st.size() != 0) { + if (st.length() != 0) { _path_stack.push_back(st); } path.erase(0, pos + 1); } - if (path.size() != 0) { + if (path.length() != 0) { _path_stack.push_back(path); } }