added securityfilter

This commit is contained in:
Sebastian Sdorra
2010-09-14 13:07:11 +02:00
parent c4b8936b79
commit 967b86f166
4 changed files with 27 additions and 59 deletions

View File

@@ -39,6 +39,9 @@ public class WebUtil
public static final String DATE_PREVENT_CACHE =
"Tue, 09 Apr 1985 10:00:00 GMT";
/** Field description */
public static final String HEADER_ACCEPTENCODING = "Accept-Encoding";
/** Field description */
public static final String HEADER_CACHECONTROL = "Cache-Control";
@@ -238,7 +241,7 @@ public class WebUtil
*/
public static boolean isGzipSupported(HttpServletRequest request)
{
String enc = request.getHeader("Accept-Encoding");
String enc = request.getHeader(HEADER_ACCEPTENCODING);
return (enc != null) && enc.contains("gzip");
}