Skip to content

Commit 6e6a365

Browse files
PLUGINAPI-39 Add font extension to static resource patterns
1 parent d332a1a commit 6e6a365

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugin-api/src/main/java/org/sonar/api/web/ServletFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static Builder builder() {
129129
public static class Builder {
130130
private static final String WILDCARD_CHAR = "*";
131131
private static final Collection<String> STATIC_RESOURCES = unmodifiableList(asList(
132-
"*.css", "*.css.map", "*.ico", "*.png", "*.jpg", "*.jpeg", "*.gif", "*.svg", "*.js", "*.js.map", "*.pdf", "/json/*",
132+
"*.css", "*.css.map", "*.ico", "*.png", "*.jpg", "*.jpeg", "*.gif", "*.svg", "*.js", "*.js.map", "*.pdf", "/json/*", "*.woff2",
133133
"/static/*", "/robots.txt", "/favicon.ico", "/apple-touch-icon*", "/mstile*"));
134134

135135
private final Set<String> inclusions = new LinkedHashSet<>();

plugin-api/src/test/java/org/sonar/api/web/ServletFilterTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ public void test_staticResourcePatterns() {
223223
"*.js",
224224
"*.js.map",
225225
"*.pdf",
226+
"*.woff2",
226227
"/json/*",
227228
"/static/*",
228229
"/robots.txt",

0 commit comments

Comments
 (0)