Skip to content

Commit

Permalink
Merge pull request #1075 from edog1973/master
Browse files Browse the repository at this point in the history
Fix: WebServer eating first char from header value
  • Loading branch information
igrr committed Nov 25, 2015
2 parents 14bd3d9 + 319caba commit 5422eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/ESP8266WebServer/src/Parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5422eab

Please sign in to comment.