Skip to content

Commit 0582689

Browse files
committed
fix: it's going to be OK
1 parent dfb8004 commit 0582689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dpp/httpsclient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ bool https_client::handle_buffer(std::string &buffer)
175175
h.erase(h.begin());
176176
/* HTTP/1.1 200 OK */
177177
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())) {
178+
if (req_status.size() >= 2 && (req_status[0] == "HTTP/1.1" || req_status[0] == "HTTP/1.0") && atoi(req_status[1].c_str())) {
179179
for(auto &hd : h) {
180180
std::string::size_type sep = hd.find(": ");
181181
if (sep != std::string::npos) {

0 commit comments

Comments
 (0)