diff options
| -rw-r--r-- | AUTHORS | 1 | ||||
| -rw-r--r-- | django/core/handlers/wsgi.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better: mark@junklight.com mattycakes@gmail.com Jason McBrayer <http://www.carcosa.net/jason/> + michael.mcewan@gmail.com mmarshall Eric Moritz <http://eric.themoritzfamily.com/> Robin Munn <http://www.geekforgod.com/> 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): |
