#19294: Strange WSGIRequest behavior
-------------------------------+--------------------
     Reporter:  gael@…         |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  HTTP handling  |    Version:  1.4
     Severity:  Normal         |   Keywords:  wsgi
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Looks like QUERY_STRING parsing has some problems:

 {{{
 >>> from django.core.handlers.wsgi import WSGIRequest
 >>> r = WSGIRequest(dict(QUERY_STRING='toto=2;1', REQUEST_METHOD='GET',
 **{'wsgi.input':None}))
 >>> r.GET['1']
 u''
 >>> r.GET
 <QueryDict: {u'1': [u''], u'toto': [u'2']}>
 >>> r = WSGIRequest(dict(QUERY_STRING='foo=1&bar=1;foo',
 REQUEST_METHOD='GET', **{'wsgi.input':None}))
 >>> r.GET
 <QueryDict: {u'foo': [u'1', u''], u'bar': [u'1']}>
 }}}

 Is that really expected ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19294>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to