Code

Ticket #19118: path.diff

File path.diff, 619 bytes (added by alex_po, 21 months ago)
Line 
1diff --git a/django/http/__init__.py b/django/http/__init__.py
2index ecb3912..a8dac44 100644
3--- a/django/http/__init__.py
4+++ b/django/http/__init__.py
5@@ -387,7 +387,7 @@ class QueryDict(MultiValueDict):
6             encoding = settings.DEFAULT_CHARSET
7         self.encoding = encoding
8         if six.PY3:
9-            for key, value in parse_qsl(query_string or '',
10+            for key, value in parse_qsl(query_string.decode('utf-8') or '',
11                                         keep_blank_values=True,
12                                         encoding=encoding):
13                 self.appendlist(key, value)