summaryrefslogtreecommitdiff
path: root/django/http
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-02-17 16:04:45 -0500
committerTim Graham <timograham@gmail.com>2017-02-17 16:04:45 -0500
commit75f0070a54925bc8d10b1f5a2b6a50fe3a1f7f50 (patch)
treef841ba2d3532ac650f7d5c843cfad5bc877e2987 /django/http
parent4696078832f486ba63f0783a0795294b3d80d862 (diff)
Fixed #27308 -- Fixed BytesWarnings in the test suite.
Diffstat (limited to 'django/http')
-rw-r--r--django/http/multipartparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index 543fc4a552..7b45404d9d 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -69,7 +69,7 @@ class MultiPartParser:
ctypes, opts = parse_header(content_type.encode('ascii'))
boundary = opts.get('boundary')
if not boundary or not cgi.valid_boundary(boundary):
- raise MultiPartParserError('Invalid boundary in multipart: %s' % boundary)
+ raise MultiPartParserError('Invalid boundary in multipart: %s' % boundary.decode())
# Content-Length should contain the length of the body we are about
# to receive.