Changes by Serhiy Storchaka storch...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22899
___
___
Serhiy Storchaka added the comment:
self.raw_requestline is read from self.rfile:
self.raw_requestline = self.rfile.readline(65537)
self.rfile is either socket stream
self.rfile = self.connection.makefile('rb', self.rbufsize)
or in-memory bytes stream
self.rfile =
Changes by Georg Brandl ge...@python.org:
--
resolution: - not a bug
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22899
___
New submission from Ryan Chartier:
While the parse_request is handling the requestline, it tries to force the
string into iso-8859-1 using an unsupported syntax.
Line #274 in server.py
requestline = str(self.raw_requestline, 'iso-8859-1')
Obviously, python complains.
TypeError: decoding str
Georg Brandl added the comment:
With the vanilla BaseHTTPRequestHandler, this shouldn't happen.
self.raw_requestline is read from a socket file, which returns bytes, so they
can be decoded using str(bytes, encoding).
Can you please check if there are any third-party packages involved that