fix(client): cast buffer to const char* for receiveData method
This commit is contained in:
parent
fad0f6f5b4
commit
ceab8d7aab
@ -62,7 +62,7 @@ void Client::request()
|
|||||||
}
|
}
|
||||||
|
|
||||||
buffer[bytesRead] = '\0'; // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index)
|
buffer[bytesRead] = '\0'; // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index)
|
||||||
httpRequest_->receiveData(buffer, static_cast<size_t>(bytesRead));
|
httpRequest_->receiveData(static_cast<const char *>(buffer), static_cast<size_t>(bytesRead));
|
||||||
|
|
||||||
if (httpRequest_->getState() == HttpRequest::State::Complete ||
|
if (httpRequest_->getState() == HttpRequest::State::Complete ||
|
||||||
httpRequest_->getState() == HttpRequest::State::ParseError)
|
httpRequest_->getState() == HttpRequest::State::ParseError)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user