mirror of
https://github.com/pocoproject/poco.git
synced 2025-06-10 16:12:15 +02:00
- It allows adding of multiple headers on response using Poco::Net::NameValueCollection::set("", "") when running application over Apache Connector
This commit is contained in:
parent
ec8a38f3ba
commit
f5165c8584
@ -59,6 +59,11 @@ void ApacheServerResponse::initApacheOutputStream()
|
|||||||
_pApacheRequest->addHeader("Set-Cookie", cookies[c].toString());
|
_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);
|
_pStream = new ApacheOutputStream(_pApacheRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user