Added todo in HTTP::Parser, changed version to 2.0.0
This commit is contained in:
parent
c3abf0682d
commit
24a3bcd8db
2 changed files with 4 additions and 3 deletions
|
@ -141,7 +141,8 @@ bool HTTP::Parser::Read(std::string & strbuf){
|
|||
bool HTTP::Parser::parse(std::string & HTTPbuffer){
|
||||
size_t f;
|
||||
std::string tmpA, tmpB, tmpC;
|
||||
while (HTTPbuffer != ""){
|
||||
/// \todo Make this not resize HTTPbuffer in parts, but read all at once and then remove the entire request, like doxygen claims it does.
|
||||
while (!HTTPbuffer.empty()){
|
||||
if (!seenHeaders){
|
||||
f = HTTPbuffer.find('\n');
|
||||
if (f == std::string::npos) return false;
|
||||
|
@ -190,7 +191,7 @@ bool HTTP::Parser::parse(std::string & HTTPbuffer){
|
|||
}
|
||||
}
|
||||
}
|
||||
return false; //we should never get here...
|
||||
return false; //empty input
|
||||
}//HTTPReader::parse
|
||||
|
||||
#include <iostream>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue