mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02: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");
|
QByteArray clength = requestHeader("Content-Length");
|
||||||
if (clength.isEmpty()) {
|
if (clength.isEmpty()) {
|
||||||
|
_requestContent = MemoryStorage::make(0);
|
||||||
_parentManager->handleHTTPRequest(this, _requestUrl);
|
_parentManager->handleHTTPRequest(this, _requestUrl);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue