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