mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Partial backport of 612f34e31270: fix spacing error in exception message.
This commit is contained in:
parent
5135992164
commit
496660c56b
1 changed files with 2 additions and 2 deletions
|
|
@ -1067,7 +1067,7 @@ class AbstractHTTPHandler(BaseHandler):
|
|||
data = request.data
|
||||
if isinstance(data, str):
|
||||
msg = "POST data should be bytes or an iterable of bytes. "\
|
||||
"It cannot be str"
|
||||
"It cannot be of type str."
|
||||
raise TypeError(msg)
|
||||
if not request.has_header('Content-type'):
|
||||
request.add_unredirected_header(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue