Skip to content

Commit c30906a

Browse files
committed
Code cleanup
1 parent 3533503 commit c30906a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

httplib.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -6262,15 +6262,10 @@ Server::process_request(Stream &strm, bool close_connection,
62626262
if (!line_reader.getline()) { return false; }
62636263

62646264
Request req;
6265-
Response res;
62666265

6266+
Response res;
62676267
res.version = "HTTP/1.1";
6268-
6269-
for (const auto &header : default_headers_) {
6270-
if (res.headers.find(header.first) == res.headers.end()) {
6271-
res.headers.insert(header);
6272-
}
6273-
}
6268+
res.headers = default_headers_;
62746269

62756270
#ifdef _WIN32
62766271
// TODO: Increase FD_SETSIZE statically (libzmq), dynamically (MySQL).

0 commit comments

Comments
 (0)