https://bz.apache.org/bugzilla/show_bug.cgi?id=62913
Bug ID: 62913
Summary: Files not being compressed when using HTTP2
Product: Tomcat 9
Version: 9.0.13
Hardware: PC
Status: NEW
Severity: minor
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Overview:
When serving content using the HTTP2 protocol, the content is not compressed.
Steps to Reproduce:
1. Setup Tomcat to use HTTPS and the HTTP/2 upgrade protocol
2. Turn on file compression in the connector (i used compression="force" so
all files should be compressed)
3. Using curl, verify the files are returning compressed with the correct
Content-Encoding response header
To test with HTTP1.1 (returns correctly)
C:\temp\curl-7.62.0-win64-mingw\bin>curl -H "accept-encoding: gzip, deflate,
br" -I https://e-cc-p-build02:7100/index.jsp -k --http1.1
HTTP/1.1 200
vary: accept-encoding
Content-Encoding: gzip
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 15 Nov 2018 15:06:55 GMT
To test with HTTP2 (missing headers indicating file was compressed)
C:\temp\curl-7.62.0-win64-mingw\bin>curl -H "accept-encoding: gzip, deflate,
br" -I https://e-cc-p-build02:7100/index.jsp -k --http2
HTTP/2 200
content-type: text/html;charset=UTF-8
date: Thu, 15 Nov 2018 15:08:55 GMT
Actual Results:
Files are served to the client uncompressed when using HTTP2 when compression
is enabled
Expected Results:
Files are served to the client compressed when using HTTP2 when compression
is enabled
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]