handle no jetty-dir css

This commit is contained in:
Greg Wilkins 2011-12-02 09:43:15 +11:00
parent de005c68fd
commit 7e9fbc7493
1 changed files with 4 additions and 2 deletions

View File

@ -368,9 +368,11 @@ public class ResourceHandler extends AbstractHandler
if (resource==null || !resource.exists())
{
if (target.endsWith("/jetty-dir.css"))
{
response.setContentType("text/css");
{
resource = getStylesheet();
if (resource==null)
return;
response.setContentType("text/css");
}
else
return;