GzipHttpOutputInterceptor does not deflate when Accept-Encoding: * is in the request header. #12324
Labels
Bug
For general bugs on Jetty side
Specification
For all industry Specifications (IETF / Servlet / etc)
Jetty version(s)
Up to 12.0.x
Jetty Environment
core
Java version/vendor
(use: java -version)
Not relevant
OS type/version
Not relevant
Description
This doesn't really affect anything, but it is unexpected. According to RF9110 12.5.3,
However, the
HttpField
class'contains
method does not check for a lone*
character. So whenAccept-Encoding: *
is passed as a request header, theGzipHandler
'sgetDeflaterEntry
believes thatgzip
is not accepted, and returnsnull
.How to reproduce?
Run a simple web server with the
GzipHandler
installed, and send a request withAccept-Encoding: *
. The response will not contain theContent-Encoding: gzip
header, and the body will not be compressed.The text was updated successfully, but these errors were encountered: