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 = BytesIO(self.packet)
In both cases it is binary stream and produces bytes. I don't see a bug in the
stdlib, it can be a bug in user code which sets self.rfile or
self.raw_requestline to invalid value.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22899>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com