From 45e56e5ee1bdb9e169be957e21a4f7b536e417ff Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 1 Dec 2022 05:14:58 +0000 Subject: Yet more stylistic fixes. --- include/modules/httpd.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/modules/httpd.h') diff --git a/include/modules/httpd.h b/include/modules/httpd.h index ea01de16a..fe325341a 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -86,7 +86,7 @@ struct HTTPRequestURI final class HTTPHeaders final { protected: - std::map headers; + std::map headers; public: /** Set the value of a header @@ -125,7 +125,7 @@ public: */ std::string GetHeader(const std::string& name) { - std::map::iterator it = headers.find(name); + std::map::iterator it = headers.find(name); if (it == headers.end()) return std::string(); @@ -137,7 +137,7 @@ public: */ bool IsSet(const std::string& name) { - std::map::iterator it = headers.find(name); + std::map::iterator it = headers.find(name); return (it != headers.end()); } @@ -263,7 +263,10 @@ public: * based upon the response code. */ HTTPDocumentResponse(Module* mod, HTTPRequest& req, std::stringstream* doc, unsigned int response) - : module(mod), document(doc), responsecode(response), src(req) + : module(mod) + , document(doc) + , responsecode(response) + , src(req) { } }; -- cgit v1.3.1-10-gc9f91