Skip to content

Commit 04a23c8

Browse files
authored
Move http_response class members to private. (etr#181)
They never should have been protected in the first place, as they are accessible through class methods.
1 parent a7b9b6a commit 04a23c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/httpserver/http_response.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,14 @@ class http_response
143143
virtual void decorate_response(MHD_Response* response);
144144
virtual int enqueue_response(MHD_Connection* connection, MHD_Response* response);
145145

146-
protected:
146+
private:
147147
int response_code = -1;
148148

149149
std::map<std::string, std::string, http::header_comparator> headers;
150150
std::map<std::string, std::string, http::header_comparator> footers;
151151
std::map<std::string, std::string, http::header_comparator> cookies;
152152

153+
protected:
153154
friend std::ostream &operator<< (std::ostream &os, const http_response &r);
154155
};
155156

0 commit comments

Comments
 (0)