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

            Bug ID: 62538
           Summary: Connector attribute "compressableMimeType" is ignored
           Product: Tomcat 9
           Version: 9.0.10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: benjamenwe...@gmail.com
  Target Milestone: -----

Created attachment 36028
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36028&action=edit
Modified server.xml

Hello.

It appears that the "compressableMimeType" attribute in "server.xml" is being
ignored.

Versions:
Tomcat 9.0.10
Java 1.8.0_171(Doesn't seem to matter what version of 8)

Repro:
Using the attached configuration files, and Java servlet file, startup a tomcat
9 instance.
Navigate to localhost:8080/deflate/whatever

Expected:
"I should show up in requests as deflated text!" deflated, with headers:
"Content-Encoding","deflate" and "Content-Type","text/plain"


Actual:
The deflated string gzipped with headers: "Content-Encoding","gzip" and
"Content-Type","text/plain"

Even though "text/plain" isn't one of the configured "compressableMimeTypes" it
still got gzipped.

Even you need any more details or if I was unclear please let me know, thanks.

-- 
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