mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Code cleanup
This commit is contained in:
parent
3533503323
commit
c30906a541
1 changed files with 2 additions and 7 deletions
|
@ -6262,15 +6262,10 @@ Server::process_request(Stream &strm, bool close_connection,
|
|||
if (!line_reader.getline()) { return false; }
|
||||
|
||||
Request req;
|
||||
|
||||
Response res;
|
||||
|
||||
res.version = "HTTP/1.1";
|
||||
|
||||
for (const auto &header : default_headers_) {
|
||||
if (res.headers.find(header.first) == res.headers.end()) {
|
||||
res.headers.insert(header);
|
||||
}
|
||||
}
|
||||
res.headers = default_headers_;
|
||||
|
||||
#ifdef _WIN32
|
||||
// TODO: Increase FD_SETSIZE statically (libzmq), dynamically (MySQL).
|
||||
|
|
Loading…
Reference in a new issue