Skip to content

Bugfix and accepting put data #4151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libraries/ESP8266WebServer/src/ESP8266WebServerSecure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
#include "WiFiClient.h"
#include "ESP8266WebServerSecure.h"

#ifdef DEBUG_ESP_PORT
#define DEBUG_OUTPUT DEBUG_ESP_PORT
#else
#define DEBUG_OUTPUT Serial
#endif

ESP8266WebServerSecure::ESP8266WebServerSecure(IPAddress addr, int port)
: _serverSecure(addr, port)
Expand Down
10 changes: 10 additions & 0 deletions libraries/ESP8266WebServer/src/Parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,16 @@ void ESP8266WebServer::_parseArguments(String data) {
break;
pos = next_arg_index + 1;
}

if (iarg == 0) {
#ifdef DEBUG_ESP_HTTP_SERVER
DEBUG_OUTPUT.println("add plain data");
#endif
RequestArgument& arg = _currentArgs[iarg++];
arg.key = "plain";
arg.value = data;
}

_currentArgCount = iarg;
#ifdef DEBUG_ESP_HTTP_SERVER
DEBUG_OUTPUT.print("args count: ");
Expand Down