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

This commit is contained in:
Georg Brandl 2012-06-24 20:01:05 +02:00
parent 5135992164
commit 496660c56b

View file

@ -1067,7 +1067,7 @@ class AbstractHTTPHandler(BaseHandler):
data = request.data data = request.data
if isinstance(data, str): if isinstance(data, str):
msg = "POST data should be bytes or an iterable of bytes. "\ msg = "POST data should be bytes or an iterable of bytes. "\
"It cannot be str" "It cannot be of type str."
raise TypeError(msg) raise TypeError(msg)
if not request.has_header('Content-type'): if not request.has_header('Content-type'):
request.add_unredirected_header( request.add_unredirected_header(