mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
parent
5dcb336a7b
commit
f58d3a1838
@ -38,6 +38,9 @@ HttpRequest::HttpRequest(const Stream::Ptr& stream)
|
|||||||
|
|
||||||
bool HttpRequest::Parse(StreamReadContext& src, bool may_wait)
|
bool HttpRequest::Parse(StreamReadContext& src, bool may_wait)
|
||||||
{
|
{
|
||||||
|
if (!m_Stream)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (m_State != HttpRequestBody) {
|
if (m_State != HttpRequestBody) {
|
||||||
String line;
|
String line;
|
||||||
StreamReadStatus srs = m_Stream->ReadLine(&line, src, may_wait);
|
StreamReadStatus srs = m_Stream->ReadLine(&line, src, may_wait);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user