Skip to content

Commit

Permalink
Fix serving files that clash with directories
Browse files Browse the repository at this point in the history
  • Loading branch information
envygeeks authored and MattSturgeon committed Jul 20, 2017
1 parent 56546a2 commit 6dfc2cc
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 6dfc2cc

Please sign in to comment.