Opened 19 years ago

Closed 19 years ago

#923 closed defect (fixed)

[patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ

Reported by: michael.mcewan@… 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)

wsgi.diff (699 bytes ) - added by michael.mcewan@… 19 years ago.

Download all attachments as: .zip

Change History (3)

by michael.mcewan@…, 19 years ago

Attachment: wsgi.diff added

comment:1 by michael.mcewan@…, 19 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 Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [1442]) Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.environ. Thanks, michael.mcewan

Note: See TracTickets for help on using tickets.
Back to Top