Permalink
Browse files

accept both /foo and /foo/ (no strict slashes)

  • Loading branch information...
1 parent 88c8422 commit e9ba158877e68ef0871e202af774e48adaa5cadf @posativ committed Dec 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 weave/__init__.py
View
@@ -19,7 +19,7 @@
#
# lightweight firefox weave/sync server
-__version__ = '0.16.1'
+__version__ = '0.17.0'
import sys; reload(sys)
sys.setdefaultencoding('utf-8')
@@ -85,7 +85,7 @@ def __init__(self, url_map, *items):
endpoint='storage.collection', methods=['GET', 'HEAD', 'PUT', 'POST', 'DELETE']),
Rule('/<float:version>/<re("[a-zA-Z0-9._-]+"):uid>/storage/<cid>/<id>',
endpoint='storage.item', methods=['GET', 'HEAD', 'PUT', 'DELETE']),
-], converters={'re': RegexConverter})
+], converters={'re': RegexConverter}, strict_slashes=False)
# stolen from http://flask.pocoo.org/snippets/35/ -- thank you, but does not

0 comments on commit e9ba158

Please sign in to comment.