diff --git a/modules/http_server_simple/simple_web_server_request.cpp b/modules/http_server_simple/simple_web_server_request.cpp index 8f3e3511b..e8814f2e8 100644 --- a/modules/http_server_simple/simple_web_server_request.cpp +++ b/modules/http_server_simple/simple_web_server_request.cpp @@ -256,7 +256,7 @@ void SimpleWebServerRequest::set_parser_path(const String &value) { } String key = cp.substr_index(0, eq); - String val = cp.substr_index(eq + 1, cp.size()); + String val = cp.substr_index(eq + 1, cp.length()); if (key.empty() || val.empty()) { // &=v& or &p=&