Allow adding headers on http response over Apache Connector (#2404) (#2407)

- It allows adding of multiple headers on response using Poco::Net::NameValueCollection::set("", "") when running application over Apache Connector
This commit is contained in:
Edson A. Soares 2018-07-26 17:35:41 -03:00 committed by Aleksandar Fabijanic
parent ec8a38f3ba
commit f5165c8584

View File

@ -59,6 +59,11 @@ void ApacheServerResponse::initApacheOutputStream()
_pApacheRequest->addHeader("Set-Cookie", cookies[c].toString());
}
for (Poco::Net::NameValueCollection::ConstIterator it = begin(); it != end(); ++it)
{
_pApacheRequest->addHeader(it->first, it->second);
}
_pStream = new ApacheOutputStream(_pApacheRequest);
}