Commit 3b46a000 authored by unknown's avatar unknown
Browse files

Added back wildcard since it was not making a difference.

Added "file:///" protocol to "href" attribute.
parent 244bb45a
Pipeline #170963 passed with stages
in 44 seconds
......@@ -17,7 +17,7 @@ public class WebServer {
Server server = new Server(Integer.valueOf(System.getenv("PORT")));
ServletHandler handler = new ServletHandler();
handler.addServletWithMapping(new ServletHolder(new Website()), "/");
handler.addServletWithMapping(new ServletHolder(new Website()), "/*");
server.setHandler(handler);
server.start();
......
......@@ -46,10 +46,10 @@ public class HTMLResultPage implements Page {
downloadableFileWriter.write(answer);
// Reference file in html
writer.println("<p>" +
String.format("<a id=\"download_link\" href=\"/%s\" download=\"%s\">", downloadableFileName,
downloadableFileName) +
"Download file</a>" +
"</p>");
String.format("<a id=\"download_link\" href=\"file:///%s\" download=\"%s\">", downloadableFileName,
downloadableFileName) +
"Download file</a>" +
"</p>");
downloadableFileWriter.close();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment