We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8082dc commit de42013Copy full SHA for de42013
src/main/java/org/wiztools/anyurlhttpserver/AnyUrlHttpServerMain.java
@@ -56,8 +56,20 @@ public static void main(String[] args) throws Exception {
56
file = null;
57
}
58
59
+ String contentType = null;
60
+ if(options.has("c")) {
61
+ contentType = options.valueOf("c").toString();
62
+ }
63
+
64
+ String charset = null;
65
+ if(options.has("r")) {
66
+ charset = options.valueOf("r").toString();
67
68
69
AnyUrlServlet servlet = new AnyUrlServlet();
70
servlet.setFile(file);
71
+ servlet.setContentType(contentType);
72
+ servlet.setCharset(charset);
73
74
Server server = new Server(port);
75
server.setStopAtShutdown(true);
0 commit comments