mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Some cleanups.
This commit is contained in:
@@ -50,7 +50,6 @@ HTTPRequestAction HTTPRequest::consume(boost::asio::streambuf& buf)
|
||||
bShouldClose = sRequest.find("HTTP/1.1") == std::string::npos;
|
||||
|
||||
eState = await_header;
|
||||
// cLog(lsTRACE) << "Got first line. Going to header state";
|
||||
return haREAD_LINE;
|
||||
}
|
||||
|
||||
@@ -60,11 +59,10 @@ HTTPRequestAction HTTPRequest::consume(boost::asio::streambuf& buf)
|
||||
{
|
||||
if (iDataSize == 0)
|
||||
{ // no body
|
||||
eState = bShouldClose ? await_close : await_reset;
|
||||
eState = do_request;
|
||||
return haDO_REQUEST;
|
||||
}
|
||||
eState = getting_body;
|
||||
// cLog(lsTRACE) << "Got header, need body: " << iDataSize;
|
||||
return haREAD_RAW;
|
||||
}
|
||||
vHeaders.push_back(line);
|
||||
|
||||
Reference in New Issue
Block a user