killbill-memoizeit

server: add more static extensions for the Analytics plugin Signed-off-by:

1/13/2015 7:24:03 PM

Details

diff --git a/profiles/killbill/src/main/java/org/killbill/billing/server/security/TenantFilter.java b/profiles/killbill/src/main/java/org/killbill/billing/server/security/TenantFilter.java
index 23e6c7a..5e81ba3 100644
--- a/profiles/killbill/src/main/java/org/killbill/billing/server/security/TenantFilter.java
+++ b/profiles/killbill/src/main/java/org/killbill/billing/server/security/TenantFilter.java
@@ -149,7 +149,7 @@ public class TenantFilter implements Filter {
     }
 
     private boolean isMetricsRequest(final String path, final String httpMethod) {
-        return (KillbillGuiceListener.METRICS_SERVLETS_PATHS.contains(path) && "GET".equals(httpMethod));
+        return KillbillGuiceListener.METRICS_SERVLETS_PATHS.contains(path) && "GET".equals(httpMethod);
     }
 
     private boolean isOptionsRequest(final String httpMethod) {
@@ -181,7 +181,10 @@ public class TenantFilter implements Filter {
                path.endsWith(".css") ||
                path.endsWith(".gz") ||
                path.endsWith(".xml") ||
-               path.endsWith(".txt");
+               path.endsWith(".txt") ||
+               path.endsWith(".map")||
+               path.endsWith(".woff")||
+               path.endsWith(".ttf");
     }
 
     private void sendAuthError(final ServletResponse response, final String errorMessage) throws IOException {