summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-01-12 07:49:59 +0000
committerianb <devnull@localhost>2006-01-12 07:49:59 +0000
commit65b84135b17da580750ea1b601e94a9dcd7cab5d (patch)
tree1221154a4d3aa7b13483067ec6688375ef77df1c
parentf9e0a49d89d9f42fa44b27998df16255fedd93c1 (diff)
downloadpaste-65b84135b17da580750ea1b601e94a9dcd7cab5d.tar.gz
Typo; fixed #54 (no QUERY_STRING or QUERY_STRING on PATH_INFO)
-rw-r--r--docs/developer-features.txt2
-rw-r--r--paste/util/scgiserver.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/developer-features.txt b/docs/developer-features.txt
index f07641c..7c0cf67 100644
--- a/docs/developer-features.txt
+++ b/docs/developer-features.txt
@@ -28,7 +28,7 @@ Web Application
---------------
* Run CGI programs as WSGI applications in ``paste.cgiapp`` (and
- Python-sepcific CGI programs with ``paste.pycgiwrapper``)
+ Python-specific CGI programs with ``paste.pycgiwrapper``)
* Traverse files and load WSGI applications from ``.py`` files (or
static files), in ``paste.urlparser``
diff --git a/paste/util/scgiserver.py b/paste/util/scgiserver.py
index 8180286..7113330 100644
--- a/paste/util/scgiserver.py
+++ b/paste/util/scgiserver.py
@@ -76,7 +76,7 @@ class SWAP(scgi_server.SCGIHandler):
## REQUEST_URI.
prefix = self.prefix
- path = environ['REQUEST_URI'][len(prefix):]
+ path = environ['REQUEST_URI'][len(prefix):].split('?', 1)[0]
environ['SCRIPT_NAME'] = prefix
environ['PATH_INFO'] = path