On 12/07/2019 08:27, Jean Pierre Urkens wrote:
> Hi,

> 
> I recently upgraded my Tomcat-8.5 installation from 8.5.30 to the latest
> version 8.5.43 and I am noticing that js files are served by
> Tomcat-8.5.43 with content-type: ‘text/html’ instead of
> ‘application/javascript’ as it is configured in the mime-mappings.
> 
> Could someone clarify this (changed) behavior?

Please provide the minimal steps to reproduce this issue on a clean
install. When I try, it works as expected:


telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /test.js HTTP/1.1
Host: localhost

HTTP/1.1 200
Accept-Ranges: bytes
ETag: W/"49-1562919875000"
Last-Modified: Fri, 12 Jul 2019 08:24:35 GMT
Content-Type: application/javascript
Content-Length: 49
Date: Fri, 12 Jul 2019 08:25:07 GMT

function test() {
    alert("This is a test");
}


Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to