From 05826898129f679537b63bfb0bd640ac810c09b2 Mon Sep 17 00:00:00 2001 From: Amber Ehrlich Date: Sun, 4 Feb 2024 01:02:44 -0500 Subject: [PATCH] fix: it's going to be OK --- src/dpp/httpsclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {