python: Fixed QUERY_STRING bug in ashd-wsgi.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 23 Oct 2010 06:21:30 +0000 (08:21 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 23 Oct 2010 06:21:30 +0000 (08:21 +0200)
python/ashd-wsgi

index dc3bc91..beb39ca 100755 (executable)
@@ -50,8 +50,8 @@ def dowsgi(req):
     name = req.url
     p = name.find('?')
     if p >= 0:
-        name = name[:p]
         env["QUERY_STRING"] = name[p + 1:]
+        name = name[:p]
     else:
         env["QUERY_STRING"] = ""
     if name[-len(req.rest):] == req.rest: