From 29449a233885264eb30c3575d1571bd096230885 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 9 Feb 2017 10:52:58 +0100 Subject: SONAR-8470 Add favicon and apple touch icons (#1644) --- sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java | 2 +- .../src/test/java/org/sonar/api/web/ServletFilterTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java index 7d8cbb5c46e..b4ed16602cc 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java @@ -122,7 +122,7 @@ public abstract class ServletFilter implements Filter { public static class Builder { private static final String WILDCARD_CHAR = "*"; private static final Collection STATIC_RESOURCES = ImmutableList.of("/css/*", "/fonts/*", "/images/*", "/js/*", "/static/*", - "/robots.txt", "/favicon.ico", "/apple-touch-icon*"); + "/robots.txt", "/favicon.ico", "/apple-touch-icon*", "/mstile*"); private final Set inclusions = new LinkedHashSet<>(); private final Set exclusions = new LinkedHashSet<>(); diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/web/ServletFilterTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/web/ServletFilterTest.java index 72c2ba21e52..a78348c4f45 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/web/ServletFilterTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/web/ServletFilterTest.java @@ -224,7 +224,8 @@ public class ServletFilterTest { "/static/*", "/robots.txt", "/favicon.ico", - "/apple-touch-icon*"); + "/apple-touch-icon*", + "/mstile*"); } private static class FakeFilter extends ServletFilter { -- cgit v1.2.3