Commit 71154ef6 authored by jan.koester's avatar jan.koester
Browse files

added missing file

parent 3a094d4a
Loading
Loading
Loading
Loading
+2 −2
Changes for src/http.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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,
@@ -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,