Skip to content

Commit

Permalink
Added support for colon (:) in design document name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Søren Blond Daugaard committed Jul 26, 2011
1 parent 385c720 commit 05dd22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couchdb-external-hook.py
Expand Up @@ -61,7 +61,7 @@ def respond(res, req, key):

# URL-escape each part
for index, item in enumerate(path):
path[index] = urllib.quote(path[index], "")
path[index] = urllib.quote(path[index], safe=":/")

path = '/'.join(['', key] + path)
params = urllib.urlencode(dict([k, v.encode('utf-8')] for k, v in req["query"].items()))
Expand Down

0 comments on commit 05dd22f

Please sign in to comment.