Fixed bug where serving of static files didn't work on Windows with hopHome
property set by using File.getCanonicalFile().
This commit is contained in:
parent
a097a07937
commit
1f6e49e791
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ public class ApplicationManager {
|
|||
}
|
||||
if (server.http != null) {
|
||||
// add handler for static files.
|
||||
File staticContent = new File (server.getHopHome(), "static");
|
||||
File staticContent = new File (server.getHopHome(), "static").getCanonicalFile();
|
||||
Server.getLogger().log("Serving static content from "+staticContent.getAbsolutePath());
|
||||
HandlerContext context = server.http.addContext ("/static/*");
|
||||
context.setResourceBase (staticContent.getAbsolutePath());
|
||||
|
|
Loading…
Add table
Reference in a new issue