1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

plaintext POST fixes and rework of the SD example

Added a single file web editor/browser/uploader and all needed methods
to work with the files on the SD Card
This commit is contained in:
ficeto
2015-05-11 13:43:26 +03:00
parent 8fac77b0c3
commit 1f657fab73
5 changed files with 888 additions and 84 deletions

View File

@ -152,7 +152,7 @@ void ESP8266WebServer::handleClient()
String formData;
//bellow is needed only when POST type request
if(method == HTTP_POST || method == HTTP_PUT || method == HTTP_PATCH){
if(method == HTTP_POST || method == HTTP_PUT || method == HTTP_PATCH || method == HTTP_DELETE){
String boundaryStr;
String headerName;
String headerValue;
@ -391,7 +391,8 @@ void ESP8266WebServer::_parseForm(WiFiClient& client, String boundary, uint32_t
line = client.readStringUntil('\r');
client.readStringUntil('\n');
if(line.startsWith("--"+boundary)) break;
argValue += line+"\n";
if(argValue.length() > 0) argValue += "\n";
argValue += line;
}
#ifdef DEBUG
DEBUG_OUTPUT.print("PostArg Value: ");