mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-18 12:40:00 +00:00
check for incomplete HTTP header
This commit is contained in:
parent
76adac31c3
commit
0ce15ffc91
@ -397,7 +397,8 @@ namespace client
|
||||
while (!endOfHeader)
|
||||
{
|
||||
std::getline(m_InHeader, line);
|
||||
if (!m_InHeader.fail ())
|
||||
if (m_InHeader.fail ()) break;
|
||||
if (!m_InHeader.eof ())
|
||||
{
|
||||
if (line == "\r") endOfHeader = true;
|
||||
else
|
||||
@ -485,7 +486,8 @@ namespace client
|
||||
while (!endOfHeader)
|
||||
{
|
||||
std::getline(m_InHeader, line);
|
||||
if (!m_InHeader.fail ())
|
||||
if (m_InHeader.fail ()) break;
|
||||
if (!m_InHeader.eof ())
|
||||
{
|
||||
if (line == "\r") endOfHeader = true;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user