Skip to content

Commit e1b0d8a

Browse files
committed
Add SVG mimetype for Android
1 parent d0fd8e9 commit e1b0d8a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

android/src/main/java/com/futurepress/staticserver/WebServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public WebServer(String localAddr, int port, File wwwroot) throws IOException {
1717
mimeTypes().put("otf", "application/x-font-otf");
1818
mimeTypes().put("ttf", "application/x-font-ttf");
1919
mimeTypes().put("js", "application/javascript");
20+
mimeTypes().put("svg", "image/svg+xml");
2021
}
2122

22-
}
23+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{
33
"name": "react-native-static-server",
4-
"version": "0.1.3",
4+
"version": "0.1.4",
55
"repository": "https://github.com/futurepress/react-native-static-server",
66
"description": "HTTP static file server for React Native",
77
"main": "index.js",

0 commit comments

Comments
 (0)