1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-18 16:49:58 +00:00

check for incomplete HTTP header

This commit is contained in:
orignal 2023-04-26 21:34:22 -04:00
parent 76adac31c3
commit 0ce15ffc91

View File

@ -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