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 SenBin Yu
Recipients SenBin Yu
Date 2016-09-08.12:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473338964.47.0.491087604929.issue28020@psf.upfronthosting.co.za>
In-reply-to
Content
The standard http basic authorization is

basic-credentials = "Basic" SP basic-cookie

basic-cookie      = <base64 [5] encoding of userid-password,
                            except not limited to 76 char/line>

userid-password   = [ token ] ":" *TEXT

but the logging/handlers module do the fllowing:

s = ('u%s:%s' % self.credentials).encode('utf-8')

s = 'Basic ' + base64.b64encode(s).strip()

why there is a redundant chr 'u'?
History
Date User Action Args
2016-09-08 12:49:24SenBin Yusetrecipients: + SenBin Yu
2016-09-08 12:49:24SenBin Yusetmessageid: <1473338964.47.0.491087604929.issue28020@psf.upfronthosting.co.za>
2016-09-08 12:49:24SenBin Yulinkissue28020 messages
2016-09-08 12:49:24SenBin Yucreate