Skip to content

Commit

Permalink
Added support for empty "/index.html" (without content).
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Feb 15, 2015
1 parent 3933f61 commit 7720ab9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ protected Object pageContent() {
if (cnt != null) {
return cnt;
} else {
if (screen != null && (screen != app || x.uri().equals("/"))) {
if (screen != null && (screen != app || x.uri().equals("/") || x.uri().equals("/index.html"))) {
return "No content available!";
} else {
throw x.notFound();
Expand Down

0 comments on commit 7720ab9

Please sign in to comment.