mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove traces of rfc822.
This commit is contained in:
parent
a0c0a4a261
commit
9f0f960d4c
6 changed files with 12 additions and 11 deletions
|
@ -315,7 +315,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
|
|||
|
||||
# Examine the headers and look for a Connection directive.
|
||||
|
||||
# MessageClass (rfc822) wants to see strings rather than bytes.
|
||||
# MessageClass wants to see strings rather than bytes.
|
||||
# But a TextIOWrapper around self.rfile would buffer too many bytes
|
||||
# from the stream, bytes which we later need to read as bytes.
|
||||
# So we read the correct bytes here, as bytes, then use StringIO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue