The STRICT_SERVLET_COMPLIANCE influences Tomcat's behavior in several subtle ways. See the References below for the complete list. It is recommended that STRICT_SERVLET_COMPLIANCE is set to true.
Solution
Start Tomcat with strict compliance enabled. Add the following to your startup script: -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true