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

Commit

Permalink
allow collections with dots in names
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Jun 8, 2011
1 parent c7d98b0 commit 6cd5802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def process_uri(self, method):
uri = "index.html"

(temp, dot, type) = uri.rpartition('.')
if len(dot) == 0:
# if we have a collection name with a dot, don't use that dot for type
if len(dot) == 0 or uri.find('/') != -1:
type = ""

return (uri, args, type)
Expand Down

0 comments on commit 6cd5802

Please sign in to comment.