3 Replies Latest reply on Oct 7, 2019 1:00 PM by zhurlik

    Undertow static content encoding

    nauplius79

      Hello Everybody,

      I stumbled onto a following issue. I have a war deployed with some JAX-RS endpoints and additionally some static files to be served by the web server.
      I need to have a default charset appended to all HTTP responses' content-type header.
      <servlet-container default-encoding="UTF-8"> seems to do the trick for the JAX-RS, but static content is served without the charset in content-type.
      I couldn't find where would that be in configuration - can you help here?

      Edit: I am using Wildfly 14

       

      Thanks in advance, any hints appreciated!

      Jakub