mirror of https://github.com/Icinga/icinga2.git
Build/Merge fixes
This commit is contained in:
parent
c5b92defec
commit
adc054097d
|
@ -189,14 +189,13 @@ bool HttpServerConnection::ProcessMessage(void)
|
||||||
bool HttpServerConnection::ManageHeaders(HttpResponse& response)
|
bool HttpServerConnection::ManageHeaders(HttpResponse& response)
|
||||||
{
|
{
|
||||||
static const size_t defaultContentLengthLimit = 1 * 1028 * 1028;
|
static const size_t defaultContentLengthLimit = 1 * 1028 * 1028;
|
||||||
static const Dictionary::Ptr specialContentLengthLimits = new Dictionary({
|
static const Dictionary::Ptr specialContentLengthLimits = new Dictionary;
|
||||||
{"*", 512 * 1028 * 1028},
|
specialContentLengthLimits->Set("*", 512 * 1028 * 1028);
|
||||||
{"config/modify", 512 * 1028 * 1028},
|
specialContentLengthLimits->Set("config/modify", 512 * 1028 * 1028);
|
||||||
{"console", 512 * 1028 * 1028},
|
specialContentLengthLimits->Set("console", 512 * 1028 * 1028);
|
||||||
{"objects/create", 512 * 1028 * 1028},
|
specialContentLengthLimits->Set("objects/create", 512 * 1028 * 1028);
|
||||||
{"objects/modify", 512 * 1028 * 1028},
|
specialContentLengthLimits->Set("objects/modify", 512 * 1028 * 1028);
|
||||||
{"objects/delete", 512 * 1028 * 1028}
|
specialContentLengthLimits->Set("objects/delete", 512 * 1028 * 1028);
|
||||||
});
|
|
||||||
|
|
||||||
if (m_CurrentRequest.Headers->Get("expect") == "100-continue") {
|
if (m_CurrentRequest.Headers->Get("expect") == "100-continue") {
|
||||||
String continueResponse = "HTTP/1.1 100 Continue\r\n\r\n";
|
String continueResponse = "HTTP/1.1 100 Continue\r\n\r\n";
|
||||||
|
|
|
@ -124,7 +124,7 @@ boost::shared_ptr<X509> PkiUtility::FetchCert(const String& host, const String&
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
Log(LogCritical, "pki")
|
Log(LogCritical, "pki")
|
||||||
<< "Client TLS handshake failed. (" << ex.what() << ")";
|
<< "Client TLS handshake failed. (" << ex.what() << ")";
|
||||||
return std::shared_ptr<X509>();
|
return boost::shared_ptr<X509>();
|
||||||
}
|
}
|
||||||
|
|
||||||
return stream->GetPeerCertificate();
|
return stream->GetPeerCertificate();
|
||||||
|
|
Loading…
Reference in New Issue