mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00: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; }
|
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…
Add table
Add a link
Reference in a new issue