From: Remi Gacogne Date: Fri, 13 Nov 2020 07:41:05 +0000 (+0100) Subject: Fix initialization of WebServer::accept_yaml X-Git-Tag: auth-4.4.0-beta1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d05b2f7dfeba550b74dd3c59678137bde6fa3e9d;p=thirdparty%2Fpdns.git Fix initialization of WebServer::accept_yaml --- diff --git a/pdns/webserver.hh b/pdns/webserver.hh index 9e1f67971e..2c23d1fe2d 100644 --- a/pdns/webserver.hh +++ b/pdns/webserver.hh @@ -31,13 +31,14 @@ class HttpRequest : public YaHTTP::Request { public: - HttpRequest(const string& logprefix_="") : YaHTTP::Request(), accept_json(false), accept_html(false), complete(false), logprefix(logprefix_) { }; + HttpRequest(const string& logprefix_="") : YaHTTP::Request(), logprefix(logprefix_) { }; - bool accept_yaml; - bool accept_json; - bool accept_html; - bool complete; string logprefix; + bool accept_yaml{false}; + bool accept_json{false}; + bool accept_html{false}; + bool complete{false}; + json11::Json json(); // checks password _only_.