Commit 496660c5 authored by Georg Brandl's avatar Georg Brandl

Partial backport of 612f34e31270: fix spacing error in exception message.

parent 51359921
......@@ -1066,8 +1066,8 @@ class AbstractHTTPHandler(BaseHandler):
if request.data is not None: # POST
data = request.data
if isinstance(data, str):
msg = "POST data should be bytes or an iterable of bytes."\
"It cannot be str"
msg = "POST data should be bytes or an iterable of bytes. "\
"It cannot be of type str."
raise TypeError(msg)
if not request.has_header('Content-type'):
request.add_unredirected_header(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment