Ticket #19075: queryparams.diff

File queryparams.diff, 563 bytes (added by Ivan Virabyan, 12 years ago)

prevent convertion of query string to unicode

  • django/core/servers/basehttp.py

    diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
    index 19b287a..3c976f2 100644
    a b class WSGIRequestHandler(simple_server.WSGIRequestHandler, object):  
    144144        env['SERVER_PROTOCOL'] = self.request_version
    145145        env['REQUEST_METHOD'] = self.command
    146146        if '?' in self.path:
    147             path,query = self.path.split('?',1)
     147            path,query = self.path.split(str('?'),1)
    148148        else:
    149149            path,query = self.path,''
    150150
Back to Top