https://bz.apache.org/bugzilla/show_bug.cgi?id=62154

            Bug ID: 62154
           Summary: Custom compressible mimetypes aren't properly used
           Product: Tomcat 9
           Version: 9.0.5
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: tim.yse...@me.com
  Target Milestone: -----

When calling setCompressibleMimeType in CompressionConfig,
compressibleMimeTypes is reset, which is only populated when calling
getCompressibleMimeTypes.
The method useCompression is using the variable compressibleMimeTypes directly,
which is null, causing compression to be applied in scenarios where we don't
want it to happen.

I tested this trying to add servlet 4.0 support in Spring Boot 2.x.
The test that fails is noCompressionForMimeType while running
TomcatServletWebServerFactoryTests.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to