Skip to content

Commit db0cd7d

Browse files
committed
keep variable naming style consistent
1 parent aa4dac9 commit db0cd7d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

libraries/ESP8266WebServer/src/Parsing.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -305,24 +305,24 @@ int ESP8266WebServer::_parseArgumentsPrivate(const String& data, int counted) {
305305

306306
// locate separators
307307
int equal_index = data.indexOf('=', pos);
308-
int keyEndPos = equal_index;
308+
int key_end_pos = equal_index;
309309
int next_index = data.indexOf('&', pos);
310310
int next_index2 = data.indexOf(';', pos);
311311
if ((next_index == -1) || (next_index2 != -1 && next_index2 < next_index))
312312
next_index = next_index2;
313-
if ((keyEndPos == -1) || ((keyEndPos > next_index) && (next_index != -1)))
314-
keyEndPos = next_index;
315-
if (keyEndPos == -1)
316-
keyEndPos = data.length();
317-
keyEndPos--;
313+
if ((key_end_pos == -1) || ((key_end_pos > next_index) && (next_index != -1)))
314+
key_end_pos = next_index;
315+
if (key_end_pos == -1)
316+
key_end_pos = data.length();
317+
key_end_pos--;
318318

319319
// handle key/value
320-
if (keyEndPos >= (int)pos) {
320+
if (key_end_pos >= (int)pos) {
321321
// do not store or count empty ending key ("url?x=y;")
322322

323323
if (counted > 0) {
324324
RequestArgument& arg = _currentArgs[arg_total];
325-
arg.key = urlDecode(data.substring(pos, keyEndPos));
325+
arg.key = urlDecode(data.substring(pos, key_end_pos));
326326
if ((equal_index != -1) && ((equal_index < next_index - 1) || (next_index == -1)))
327327
arg.value = urlDecode(data.substring(equal_index + 1, next_index - 1));
328328
#ifdef DEBUG_ESP_HTTP_SERVER

0 commit comments

Comments
 (0)