Browse Source

Fix compile error in android ndk

Tang Huaizhe 6 years ago
parent
commit
9dbe0d855c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -2773,7 +2773,7 @@ inline bool Client::send(const std::vector<Request> &requests,
 
 
     if (!process_and_close_socket(
     if (!process_and_close_socket(
             sock, requests.size() - i,
             sock, requests.size() - i,
-            [&](Stream &strm, bool last_connection, bool &connection_close) {
+            [&](Stream &strm, bool last_connection, bool &connection_close) -> bool {
               auto &req = requests[i];
               auto &req = requests[i];
               auto res = Response();
               auto res = Response();
               i++;
               i++;