diff --git a/src/dpp/httpsclient.cpp b/src/dpp/httpsclient.cpp index 31ef37e49c..d6e4bc7302 100644 --- a/src/dpp/httpsclient.cpp +++ b/src/dpp/httpsclient.cpp @@ -175,7 +175,7 @@ bool https_client::handle_buffer(std::string &buffer) h.erase(h.begin()); /* HTTP/1.1 200 OK */ std::vector req_status = utility::tokenize(status_line, " "); - 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())) { for(auto &hd : h) { std::string::size_type sep = hd.find(": "); if (sep != std::string::npos) {