Skip to content

Commit

Permalink
Fix serving files that clash with directories (#6231)
Browse files Browse the repository at this point in the history
Merge pull request 6231
  • Loading branch information
MattSturgeon authored and jekyllbot committed Jul 25, 2017
1 parent 819491b commit ec84bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/commands/serve/servlet.rb
Expand Up @@ -22,7 +22,7 @@ def initialize(server, root, callbacks)

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
Expand Down

0 comments on commit ec84bec

Please sign in to comment.