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

QNetworkReply: it is confusing whether the reply data has been decompressed or not.

    XMLWordPrintable

Details

    • 1fa0e86995 (qt/qtbase/dev) 1fa0e86995 (qt/tqtc-qtbase/dev) 8f1fc6c2c4 (qt/qtbase/6.4) 8f1fc6c2c4 (qt/tqtc-qtbase/6.4)

    Description

      If the header 'Accept-Encoding' is manually set, QT will not decompress the reply data before https://github.com/qt/qtbase/commit/6f25051536c1636688a0a0939196007aac34676d.

      However, now if the zerocopy buffer is not used, the reply data will be decompressed (example link1). Otherwise, the reply data will not be decompressed (example link2).

      Relevant code:
      https://github.com/qt/qtbase/blob/3800bcf52604c7c4a5f1a9b05f04eb04a8917bcf/src/network/access/qnetworkreplyhttpimpl.cpp#L1321-L1328
      https://github.com/qt/qtbase/blob/3800bcf52604c7c4a5f1a9b05f04eb04a8917bcf/src/network/access/qnetworkreplyhttpimpl.cpp#L309-L319

      example link:
      link1: https://subsplease.org/rss/?t&r=1080
      link2: https://linuxtracker.org/rss_torrents.php?feed=dl&pid=00000000000000000000000000000000

      Attachments

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

        Activity

          People

            manordheim MÃ¥rten Nordheim
            whyvivg Fei Xue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes