mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
d7a21c2361
commit
9d9a7ca73d
lib/remote
@ -105,7 +105,7 @@ std::vector<Value> FilterUtility::GetFilterTargets(const QueryDescription& qd, c
|
||||
attr = "name";
|
||||
|
||||
if (query->Contains(attr))
|
||||
result.push_back(provider->GetTargetByName(type, query->Get(attr)));
|
||||
result.push_back(provider->GetTargetByName(type, HttpUtility::GetLastParameter(query, attr)));
|
||||
|
||||
attr = provider->GetPluralName(type);
|
||||
boost::algorithm::to_lower(attr);
|
||||
|
@ -87,7 +87,6 @@ void HttpResponse::WriteBody(const char *data, size_t count)
|
||||
void HttpResponse::Finish(void)
|
||||
{
|
||||
ASSERT(m_State != HttpResponseEnd);
|
||||
m_State = HttpResponseEnd;
|
||||
|
||||
if (m_Request.ProtocolVersion == HttpVersion10) {
|
||||
if (m_Body)
|
||||
@ -105,6 +104,8 @@ void HttpResponse::Finish(void)
|
||||
m_Stream->Write("\r\n", 2);
|
||||
}
|
||||
|
||||
m_State = HttpResponseEnd;
|
||||
|
||||
if (m_Request.ProtocolVersion == HttpVersion10 || m_Request.Headers->Get("connection") == "close")
|
||||
m_Stream->Shutdown();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user