Changing httpCode to statusLine

This commit is contained in:
ANR2ME
2025-01-05 19:24:09 +01:00
committed by Henrik Rydgård
parent 4c0bb64163
commit f500726762
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -383,7 +383,7 @@ int Client::SendRequestWithData(const char *method, const RequestParams &req, co
return 0;
}
int Client::ReadResponseHeaders(net::Buffer *readbuf, std::vector<std::string> &responseHeaders, net::RequestProgress *progress, std::string * httpCode) {
int Client::ReadResponseHeaders(net::Buffer *readbuf, std::vector<std::string> &responseHeaders, net::RequestProgress *progress, std::string *statusLine) {
// Snarf all the data we can into RAM. A little unsafe but hey.
static constexpr float CANCEL_INTERVAL = 0.25f;
bool ready = false;
@@ -421,8 +421,8 @@ int Client::ReadResponseHeaders(net::Buffer *readbuf, std::vector<std::string> &
return -1;
}
if (httpCode)
*httpCode = line;
if (statusLine)
*statusLine = line;
while (true) {
int sz = readbuf->TakeLineCRLF(&line);