Fix serving files that clash with directories (#6231)
Merge pull request 6231
This commit is contained in:
parent
819491b99c
commit
ec84bec6d6
|
|
@ -22,7 +22,7 @@ module Jekyll
|
||||||
|
|
||||||
def search_file(req, res, basename)
|
def search_file(req, res, basename)
|
||||||
# /file.* > /file/index.html > /file.html
|
# /file.* > /file/index.html > /file.html
|
||||||
super || super(req, res, "#{basename}.html")
|
super || super(req, res, ".html") || super(req, res, "#{basename}.html")
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Style/MethodName
|
# rubocop:disable Style/MethodName
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue