Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
fixup! Fix the handling of non-default url bases.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Aug 3, 2015
1 parent 596d317 commit 80845d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wptserve/handlers.py
Expand Up @@ -60,7 +60,7 @@ def __call__(self, request, response):

path = filesystem_path(self.base_path, request, self.url_base)

if os.path.isdir(path):
if not os.path.isdir(path):
raise HTTPException(404, "%s is not a directory" % path)

response.headers = [("Content-Type", "text/html")]
Expand Down

0 comments on commit 80845d1

Please sign in to comment.