mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue