Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.env…

…iron. Thanks, michael.mcewan

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5676d5b068909a699e798575e8a6a4492ff27af8 1 parent 46c49a8
Adrian Holovaty authored
1  AUTHORS
@@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better:
62 62
     mark@junklight.com
63 63
     mattycakes@gmail.com
64 64
     Jason McBrayer <http://www.carcosa.net/jason/>
  65
+    michael.mcewan@gmail.com
65 66
     mmarshall
66 67
     Eric Moritz <http://eric.themoritzfamily.com/>
67 68
     Robin Munn <http://www.geekforgod.com/>
3  django/core/handlers/wsgi.py
@@ -81,7 +81,8 @@ def _get_request(self):
81 81
 
82 82
     def _get_get(self):
83 83
         if not hasattr(self, '_get'):
84  
-            self._get = httpwrappers.QueryDict(self.environ['QUERY_STRING'])
  84
+            # The WSGI spec says 'QUERY_STRING' may be absent.
  85
+            self._get = httpwrappers.QueryDict(self.environ.get('QUERY_STRING', ''))
85 86
         return self._get
86 87
 
87 88
     def _set_get(self, get):

0 notes on commit 5676d5b

Please sign in to comment.
Something went wrong with that request. Please try again.