Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21726

QHttpNetworkReplyPrivate::expectContent() call request.operation() when request.d is NULL (using in QtWebkit)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.7.4
    • Network
    • 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;
      }
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            zzandww zhoujianhong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes