We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e0bafd commit adcdd6cCopy full SHA for adcdd6c
1 file changed
src/common/HTTPRequest.cpp
@@ -1,6 +1,7 @@
1
#include <sstream>
2
#include <string>
3
#include <memory>
4
+#include <limits>
5
6
#include "HTTPRequest.h"
7
#include "PlaintextConnection.h"
@@ -83,7 +84,7 @@ HTTPSClient::Reply HTTPRequest::request(const HTTPSClient::Request &req)
83
84
return reply;
85
86
response >> reply.responseCode;
- response.ignore(1, '\n');
87
+ response.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
88
89
for (std::string line; getline(response, line, '\n') && line != "\r"; )
90
{
0 commit comments