1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Fix: WebServer eating first char from header value

This commit is contained in:
Eric Wilkison 2015-11-23 12:39:40 -08:00
parent 866921c54a
commit 319caba240

View File

@ -107,7 +107,8 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
break;
}
headerName = req.substring(0, headerDiv);
headerValue = req.substring(headerDiv + 2);
headerValue = req.substring(headerDiv + 1);
headerValue.trim();
_collectHeader(headerName.c_str(),headerValue.c_str());
#ifdef DEBUG