# HG changeset patch # User k0s # Date 1261949748 18000 # Node ID d2990750e5d636ff8cceb1b3258f757548eb82cc # Parent 04a77bdafaec0a5bda83ceea0dc3d27e0611a18c fix the way query string works diff -r 04a77bdafaec -r d2990750e5d6 setup.py --- a/setup.py Sun Dec 27 16:30:38 2009 -0500 +++ b/setup.py Sun Dec 27 16:35:48 2009 -0500 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os -version = "0.2.1" +version = "0.2.2" setup(name='uploader', version=version, diff -r 04a77bdafaec -r d2990750e5d6 uploader/dispatcher.py --- a/uploader/dispatcher.py Sun Dec 27 16:30:38 2009 -0500 +++ b/uploader/dispatcher.py Sun Dec 27 16:35:48 2009 -0500 @@ -24,10 +24,7 @@ self.auth = self.auth.lower() == 'true' self.subpath = self.subpath.lower() == 'true' if self.subpath: - if self.query_string: - self.handlers = [ SubpathGet, SubpathPost ] - else: - self.handlers = [ SubpathPost ] + self.handlers = [ SubpathGet, SubpathPost ] else: self.handlers = [ Get, Post ] diff -r 04a77bdafaec -r d2990750e5d6 uploader/handlers.py --- 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):