Code

Ticket #19075: queryparams.diff

File queryparams.diff, 563 bytes (added by ivan_virabyan, 21 months ago)

prevent convertion of query string to unicode

Line 
1diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
2index 19b287a..3c976f2 100644
3--- a/django/core/servers/basehttp.py
4+++ b/django/core/servers/basehttp.py
5@@ -144,7 +144,7 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object):
6         env['SERVER_PROTOCOL'] = self.request_version
7         env['REQUEST_METHOD'] = self.command
8         if '?' in self.path:
9-            path,query = self.path.split('?',1)
10+            path,query = self.path.split(str('?'),1)
11         else:
12             path,query = self.path,''
13