Django

Code

Ticket #923 (closed: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: michael.mcewan@gmail.com Assigned to: adrian
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

wsgi.diff (0.7 kB) - added by michael.mcewan@gmail.com on 11/26/05 11:19:41.

Change History

11/26/05 11:19:41 changed by michael.mcewan@gmail.com

  • attachment wsgi.diff added.

11/26/05 11:24:37 changed by michael.mcewan@gmail.com

  • 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.

11/26/05 12:41:30 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #923 ([patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ)




Change Properties
Action