Permalink
Browse files

allow collections with dots in names

  • Loading branch information...
1 parent c7d98b0 commit 6cd580248d261e99958ae1a3f0c59923b5b5053a @kchodorow kchodorow committed Jun 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 httpd.py
View
@@ -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)

0 comments on commit 6cd5802

Please sign in to comment.