diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-08-20 14:49:37 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-08-21 06:21:33 +0200 |
commit | fb462102b70024f518b004b9e08a6987a2bab5bd (patch) | |
tree | db3fdbc50eeb0db38d0853dbcd3c4ec828fca8b3 /src/network/access/http2 | |
parent | 1b9274573e204ed24ef41eb0dc273bb7aa0be6f2 (diff) |
QHttp2Configuration - respect the value returned by huffmanCompressionEnabled()
And either compress or not.
Task-number: QTBUG-77412
Change-Id: I3b09385d2b3caf4f7de0455ad6e22c0f068c33a9
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/network/access/http2')
-rw-r--r-- | src/network/access/http2/hpack.cpp | 5 | ||||
-rw-r--r-- | src/network/access/http2/hpack_p.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/network/access/http2/hpack.cpp b/src/network/access/http2/hpack.cpp index 2d324d5092..b40cc29e1a 100644 --- a/src/network/access/http2/hpack.cpp +++ b/src/network/access/http2/hpack.cpp @@ -208,6 +208,11 @@ void Encoder::setMaxDynamicTableSize(quint32 size) lookupTable.setMaxDynamicTableSize(size); } +void Encoder::setCompressStrings(bool compress) +{ + compressStrings = compress; +} + bool Encoder::encodeRequestPseudoHeaders(BitOStream &outputStream, const HttpHeader &header) { diff --git a/src/network/access/http2/hpack_p.h b/src/network/access/http2/hpack_p.h index 6a1d30d87b..8c2701e7af 100644 --- a/src/network/access/http2/hpack_p.h +++ b/src/network/access/http2/hpack_p.h @@ -83,6 +83,7 @@ public: quint32 newSize); void setMaxDynamicTableSize(quint32 size); + void setCompressStrings(bool compress); private: bool encodeRequestPseudoHeaders(BitOStream &outputStream, |