We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb8004 commit 0582689Copy full SHA for 0582689
src/dpp/httpsclient.cpp
@@ -175,7 +175,7 @@ bool https_client::handle_buffer(std::string &buffer)
175
h.erase(h.begin());
176
/* HTTP/1.1 200 OK */
177
std::vector<std::string> req_status = utility::tokenize(status_line, " ");
178
- if (req_status.size() >= 3 && (req_status[0] == "HTTP/1.1" || req_status[0] == "HTTP/1.0") && atoi(req_status[1].c_str())) {
+ if (req_status.size() >= 2 && (req_status[0] == "HTTP/1.1" || req_status[0] == "HTTP/1.0") && atoi(req_status[1].c_str())) {
179
for(auto &hd : h) {
180
std::string::size_type sep = hd.find(": ");
181
if (sep != std::string::npos) {
0 commit comments