summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-26 18:41:29 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-26 18:41:29 +0000
commit5676d5b068909a699e798575e8a6a4492ff27af8 (patch)
tree85aec18d8535e707573f90f91410fd0fe723d8ed /django
parent46c49a859a07dfcf61e749ed9bded48dbf343c00 (diff)
Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.environ. Thanks, michael.mcewan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/core/handlers/wsgi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py
index 2d34c64821..4d5931e630 100644
--- a/django/core/handlers/wsgi.py
+++ b/django/core/handlers/wsgi.py
@@ -81,7 +81,8 @@ class WSGIRequest(httpwrappers.HttpRequest):
def _get_get(self):
if not hasattr(self, '_get'):
- self._get = httpwrappers.QueryDict(self.environ['QUERY_STRING'])
+ # The WSGI spec says 'QUERY_STRING' may be absent.
+ self._get = httpwrappers.QueryDict(self.environ.get('QUERY_STRING', ''))
return self._get
def _set_get(self, get):