mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user