Loading src/http.cpp +2 −2 Changes for src/http.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -366,7 +366,7 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq) int can_read = recv - cpos; int remaining = chunklen - readed; int len = std::min(chunklen - readed, recv - cpos); // number of bytes int len = (chunklen - readed < recv - cpos) ? (chunklen - readed) : (recv - cpos); // number of bytes std::copy(data.data.buf + cpos, data.data.buf + cpos + len, Loading Loading @@ -585,7 +585,7 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq readed = 0; } int len = std::min(chunklen - readed, recv - cpos); int len = (chunklen - readed < recv - cpos) ? (chunklen - readed) : (recv - cpos); std::copy(data.data.buf + cpos, data.data.buf + cpos + len, Loading Loading
src/http.cpp +2 −2 Changes for src/http.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -366,7 +366,7 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq) int can_read = recv - cpos; int remaining = chunklen - readed; int len = std::min(chunklen - readed, recv - cpos); // number of bytes int len = (chunklen - readed < recv - cpos) ? (chunklen - readed) : (recv - cpos); // number of bytes std::copy(data.data.buf + cpos, data.data.buf + cpos + len, Loading Loading @@ -585,7 +585,7 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq readed = 0; } int len = std::min(chunklen - readed, recv - cpos); int len = (chunklen - readed < recv - cpos) ? (chunklen - readed) : (recv - cpos); std::copy(data.data.buf + cpos, data.data.buf + cpos + len, Loading