Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.7.4
-
None
-
compile PySide with qt4.7.4
Description
bool QHttpNetworkReplyPrivate::expectContent() { // check whether we can expect content after the headers (rfc 2616, sec4.4) if ((statusCode >= 100 && statusCode < 200) || statusCode == 204 || statusCode == 304) return false; /*if (request.Is_d_isNull()) { return false; }*/ //some time request.d is NULL if (request.operation() == QHttpNetworkRequest::Head) return !shouldEmitSignals(); qint64 expectedContentLength = contentLength(); if (expectedContentLength == 0) return false; if (expectedContentLength == -1 && bodyLength == 0) { // The content-length header was stripped, but its value was 0. // This would be the case for an explicitly zero-length compressed response. return false; } return true; }