Opened 20 years ago
Closed 20 years ago
#923 closed defect (fixed)
[patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
django.core.handlers.wsgi._get_get does not appear to cater for circumstances when there is no QUERY_STRING. The WSGI spec says that the QUERY_STRING environment variable may be absent. I'm attaching a patch which prevents a 'KeyError' being raised when there is no QUERY_STRING.
Attachments (1)
Change History (3)
by , 20 years ago
comment:1 by , 20 years ago
| Summary: | 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ → [patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ |
|---|
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [1442]) Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.environ. Thanks, michael.mcewan