Merge pull request #1438 from namark/settings-null-deref-fix

Fixed empty POST request to settings.json crashing the Domain server.
This commit is contained in:
Dale Glass 2021-11-06 19:31:34 +01:00 committed by GitHub
commit b3722b050c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,6 +338,7 @@ void HTTPConnection::readHeaders() {
QByteArray clength = requestHeader("Content-Length");
if (clength.isEmpty()) {
_requestContent = MemoryStorage::make(0);
_parentManager->handleHTTPRequest(this, _requestUrl);
} else {