This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients georg.brandl, recharti, serhiy.storchaka
Date 2014-11-19.08:04:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416384283.6.0.248162685657.issue22899@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-11-19 08:04:43serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, recharti
2014-11-19 08:04:43serhiy.storchakasetmessageid: <1416384283.6.0.248162685657.issue22899@psf.upfronthosting.co.za>
2014-11-19 08:04:43serhiy.storchakalinkissue22899 messages
2014-11-19 08:04:42serhiy.storchakacreate