Use String's length() instead of size().

This commit is contained in:
Relintai 2024-02-26 11:33:06 +01:00
parent 4adb2423d2
commit a6eb8377a6

View File

@ -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=&