Mercurial > hg > uploader
diff uploader/handlers.py @ 6:d2990750e5d6
fix the way query string works
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 27 Dec 2009 16:35:48 -0500 |
parents | 0b5fce452087 |
children | a8c60480fce0 |
line wrap: on
line diff
--- a/uploader/handlers.py Sun Dec 27 16:30:38 2009 -0500 +++ b/uploader/handlers.py Sun Dec 27 16:35:48 2009 -0500 @@ -62,9 +62,9 @@ @classmethod def match(cls, app, request): - if request.method != 'GET' or not app.query_string: + if request.method != 'GET': return False - if app.query_string not in request.GET: + if app.query_string and (app.query_string not in request.GET): return False _path = path(app.directory, request) if os.path.exists(_path) and os.path.isdir(_path):