Opened 10 years ago

Closed 10 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
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: UI/UX:

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@… 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by michael.mcewan@…

comment:1 Changed 10 years ago by michael.mcewan@…

  • Summary changed from 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ to [patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ

comment:2 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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