Code cleanup
This commit is contained in:
parent
3533503323
commit
c30906a541
@ -6262,15 +6262,10 @@ Server::process_request(Stream &strm, bool close_connection,
|
|||||||
if (!line_reader.getline()) { return false; }
|
if (!line_reader.getline()) { return false; }
|
||||||
|
|
||||||
Request req;
|
Request req;
|
||||||
|
|
||||||
Response res;
|
Response res;
|
||||||
|
|
||||||
res.version = "HTTP/1.1";
|
res.version = "HTTP/1.1";
|
||||||
|
res.headers = default_headers_;
|
||||||
for (const auto &header : default_headers_) {
|
|
||||||
if (res.headers.find(header.first) == res.headers.end()) {
|
|
||||||
res.headers.insert(header);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// TODO: Increase FD_SETSIZE statically (libzmq), dynamically (MySQL).
|
// TODO: Increase FD_SETSIZE statically (libzmq), dynamically (MySQL).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user