Skip to content

Commit 3b60f75

Browse files
teejaydubigrr
authored andcommitted
Fix to parse parameters in the URL of a POST with empty content. (esp8266#3398)
1 parent 1bd1de0 commit 3b60f75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ESP8266WebServer/src/Parsing.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
205205
DEBUG_OUTPUT.println(plainBuf);
206206
#endif
207207
free(plainBuf);
208+
} else {
209+
// No content - but we can still have arguments in the URL.
210+
_parseArguments(searchStr);
208211
}
209212
}
210213

0 commit comments

Comments
 (0)