diff options
| author | Jesus Fernandez <[email protected]> | 2016-04-13 17:00:48 +0200 |
|---|---|---|
| committer | Jesus Fernandez <[email protected]> | 2016-09-06 13:56:39 +0000 |
| commit | 7f14ad08bb9356f7dbedcde1ab829d0ede89a845 (patch) | |
| tree | 747add90b9b11598e56e4821a0bb16be76c588e7 /src/network/access/qnetworkrequest.cpp | |
| parent | 511623b6f065d1ac633af66926150f35676be498 (diff) | |
Add a way to get Content-Length when using compressed data
We are removing the Content-Length header from our QNetworkReply
headers from a compressed HTTP reply.
A new attribute is added to have access to the original length.
Task-number: QTBUG-41840
Change-Id: I4e885e422d4203d63460d49c0eb5f11022003578
Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
| -rw-r--r-- | src/network/access/qnetworkrequest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index 29362b81e26..bc2507ca51c 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -282,6 +282,13 @@ QT_BEGIN_NAMESPACE that is redirecting from "https" to "http" protocol, are not allowed. (This value was introduced in 5.6.) + \value OriginalContentLengthAttribute + Replies only, type QMetaType::Int + Holds the original content-length attribute before being invalidated and + removed from the header when the data is compressed and the request was + marked to be decompressed automatically. + (This value was introduced in 5.9.) + \value User Special type. Additional information can be passed in QVariants with types ranging from User to UserMax. The default |
