Skip to content

Commit

Permalink
fix: it's going to be OK (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 authored Feb 4, 2024
1 parent dfb8004 commit 843bdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/httpsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool https_client::handle_buffer(std::string &buffer)
h.erase(h.begin());
/* HTTP/1.1 200 OK */
std::vector<std::string> 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) {
Expand Down

0 comments on commit 843bdc3

Please sign in to comment.