Fixed problem that PagesServlet couldn't provide index.htm and index.mkd.
| | |
| | | // find resource
|
| | | String[] files = { "index.html", "index.htm", "index.mkd" };
|
| | | for (String file : files) {
|
| | | content = JGitUtils.getStringContent(r, tree, file, encodings)
|
| | | .getBytes(Constants.ENCODING);
|
| | | String stringContent = JGitUtils.getStringContent(r, tree, file, encodings);
|
| | | if(stringContent == null){
|
| | | continue;
|
| | | }
|
| | | content = stringContent.getBytes(Constants.ENCODING);
|
| | | if (content != null) {
|
| | | resource = file;
|
| | | // assume text/html unless the servlet container
|