diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-17 16:04:45 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-17 16:04:45 -0500 |
| commit | 75f0070a54925bc8d10b1f5a2b6a50fe3a1f7f50 (patch) | |
| tree | f841ba2d3532ac650f7d5c843cfad5bc877e2987 /django/http | |
| parent | 4696078832f486ba63f0783a0795294b3d80d862 (diff) | |
Fixed #27308 -- Fixed BytesWarnings in the test suite.
Diffstat (limited to 'django/http')
| -rw-r--r-- | django/http/multipartparser.py | 2 |
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. |
