Переглянути джерело

Fixed problem with keep-alive on client

yhirose 6 роки тому
батько
коміт
037b4fc789
1 змінених файлів з 0 додано та 5 видалено
  1. 0 5
      httplib.h

+ 0 - 5
httplib.h

@@ -2697,11 +2697,6 @@ inline void Client::write_request(Stream &strm, Request &req) {
     req.set_header("User-Agent", "cpp-httplib/0.2");
   }
 
-  // TODO: Support KeepAlive connection
-  // if (!req.has_header("Connection")) {
-  req.set_header("Connection", "close");
-  // }
-
   if (req.body.empty()) {
     if (req.method == "POST" || req.method == "PUT" || req.method == "PATCH") {
       req.set_header("Content-Length", "0");