Fix serving files that clash with directories (#6231)

Merge pull request 6231
This commit is contained in:
Matt Sturgeon 2017-07-25 23:22:40 +01:00 committed by jekyllbot
parent 819491b99c
commit ec84bec6d6
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module Jekyll
def search_file(req, res, basename)
# /file.* > /file/index.html > /file.html
super || super(req, res, "#{basename}.html")
super || super(req, res, ".html") || super(req, res, "#{basename}.html")
end
# rubocop:disable Style/MethodName