[New-bugs-announce] [issue28020] Python 3 logging HTTPHandler doesn't implement a standard http basic authorize

SenBin Yu report at bugs.python.org
Thu Sep 8 08:49:24 EDT 2016


New submission from SenBin Yu:

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'?

----------
components: Library (Lib)
messages: 275008
nosy: SenBin Yu
priority: normal
severity: normal
status: open
title: Python 3 logging HTTPHandler doesn't implement a standard http basic authorize
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28020>
_______________________________________


More information about the New-bugs-announce mailing list