From: Peter van Dijk Date: Tue, 25 Jun 2019 10:34:08 +0000 (+0200) Subject: Merge pull request #7550 from Habbie/auth-web-bodysize X-Git-Tag: dnsdist-1.4.0-rc1~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28fecfe36c9173f7813bf83c2bfb02af09647436;p=thirdparty%2Fpdns.git Merge pull request #7550 from Habbie/auth-web-bodysize auth web: make max request/response body size configurable --- 28fecfe36c9173f7813bf83c2bfb02af09647436 diff --cc pdns/webserver.hh index d7848847f3,f2c7f7496d..707b0e23c4 --- a/pdns/webserver.hh +++ b/pdns/webserver.hh @@@ -227,10 -237,13 +231,12 @@@ protected std::shared_ptr d_server; std::string d_apikey; - bool d_registerApiHandlerCalled{false}; - + void apiWrapper(WebServer::HandlerFunction handler, HttpRequest* req, HttpResponse* resp, bool allowPassword); std::string d_webserverPassword; - bool d_registerWebHandlerCalled{false}; + void webWrapper(WebServer::HandlerFunction handler, HttpRequest* req, HttpResponse* resp); + ssize_t d_maxbodysize; // in bytes + NetmaskGroup d_acl; const string d_logprefix = "[webserver] ";