mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Preserving _requestContent invariant in HTTPConnection class,
in the case when Content-Length header is empty, to avoid null dereference in the requestContent() getter.
This commit is contained in:
parent
61367ffd47
commit
7fac5dd8b8
1 changed files with 1 additions and 0 deletions
|
@ -338,6 +338,7 @@ void HTTPConnection::readHeaders() {
|
|||
|
||||
QByteArray clength = requestHeader("Content-Length");
|
||||
if (clength.isEmpty()) {
|
||||
_requestContent = MemoryStorage::make(0);
|
||||
_parentManager->handleHTTPRequest(this, _requestUrl);
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue