From d05b2f7dfeba550b74dd3c59678137bde6fa3e9d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 13 Nov 2020 08:41:05 +0100 Subject: [PATCH] Fix initialization of WebServer::accept_yaml --- pdns/webserver.hh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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_. -- 2.47.2