Skip to content

Commit

Permalink
Update WebServer.h
Browse files Browse the repository at this point in the history
Fix issue sirleech#26 by moving read out of valueLen check so you don't end up in a situation where you loop without reading new bytes
  • Loading branch information
unwiredben committed Dec 6, 2012
1 parent bbaa63a commit a29cd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebServer.h
Expand Up @@ -826,8 +826,8 @@ void WebServer::readHeader(char *value, int valueLen)
{
*value++=ch;
--valueLen;
ch = read();
}
ch = read();
} while (ch != '\r');
push(ch);
}
Expand Down

0 comments on commit a29cd68

Please sign in to comment.