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 georg.brandl
Recipients georg.brandl, recharti
Date 2014-11-18.23:23:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416352999.54.0.700873757365.issue22899@psf.upfronthosting.co.za>
In-reply-to
Content
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 call/subclass the classes from http.server and introduce a bytes/str confusion?  They might not be correctly/completely ported to Python 3 in that case.

In any case, a full traceback will be helpful to help debug this.
History
Date User Action Args
2014-11-18 23:23:19georg.brandlsetrecipients: + georg.brandl, recharti
2014-11-18 23:23:19georg.brandlsetmessageid: <1416352999.54.0.700873757365.issue22899@psf.upfronthosting.co.za>
2014-11-18 23:23:19georg.brandllinkissue22899 messages
2014-11-18 23:23:19georg.brandlcreate