diff options
author | Allan Saddi <allan@saddi.com> | 2009-06-05 09:31:26 -0700 |
---|---|---|
committer | Allan Saddi <allan@saddi.com> | 2009-06-05 09:31:26 -0700 |
commit | 05c3551558d062d033d400fb17dfb77b07cc2e05 (patch) | |
tree | e2650622ee7b41f337f1353952c7114411b963c8 | |
parent | 9304b629b4a54175ca34dafa839d359e87679f2f (diff) | |
download | flup-05c3551558d062d033d400fb17dfb77b07cc2e05.tar.gz |
Fix bug in scgi servers that occurs when SCRIPT_NAME is missing.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | flup/server/scgi_base.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2009-06-05 Allan Saddi <allan@saddi.com> + + * Fix bug in scgi servers that occurs when SCRIPT_NAME is missing. + Thanks to Jon Nelson for finding the problem! + 2009-05-29 Allan Saddi <allan@saddi.com> * Let all the active requests to finish before quitting. Thanks diff --git a/flup/server/scgi_base.py b/flup/server/scgi_base.py index cfa6662..58a3e6a 100644 --- a/flup/server/scgi_base.py +++ b/flup/server/scgi_base.py @@ -501,7 +501,7 @@ class BaseSCGIServer(object): if scriptName is NoDefault: # Pull SCRIPT_NAME/PATH_INFO from environment, with empty defaults if not environ.has_key('SCRIPT_NAME'): - environ['SCRIPT_INFO'] = '' + environ['SCRIPT_NAME'] = '' if not environ.has_key('PATH_INFO') or not environ['PATH_INFO']: if reqUri is not None: environ['PATH_INFO'] = reqUri[0] |