Ticket #111 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

wsgiapp.py wants QUERY_STRING even when empty - problems with SCGI/Pylons

Reported by: Riklaunim Owned by: thejimmyg
Priority: normal Milestone:
Component: controllers Version: 0.9.1
Severity: normal Keywords:
Cc:

Description

I've configured paste (pylons 0.9.2) to use SCGI, I've configured cherokee to use it. Static html files work but when I want to enter any dynamic pylons page I get: http://www.fotosik.pl/pokaz_obrazek/09200a1cd89f80b6.html

in wsgiapp.py There is:

if '_method' in environ['QUERY_STRING'] and req.GET.has_key('_method'):

With this:

if req.GET.has_key('_method'):

pylons/SCGI/cherokee works nicely

Change History

comment:1 Changed 3 years ago by matt_good

  • summary changed from wsgiapp.py wants QUERY_STRIN even when empty - problems with SCGI/Pylons to wsgiapp.py wants QUERY_STRING even when empty - problems with SCGI/Pylons

I did check the WSGI PEP and QUERY_STRING may be omitted if it's empty, so if there is a reason for the redundancy in the tests it should be replaced with:

if '_method' in environ.get('QUERY_STRING', '') and req.GET.has_key('_method'):

Or (my preference):

if '_method' in environ.get('QUERY_STRING', '') and '_method' in req.GET:

comment:2 Changed 3 years ago by bbangert

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

Resolved in r1413.

Note: See TracTickets for help on using tickets.


Powered by Pylons - Contact Administrators