[3.12] gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-155696) (#155971)
gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-155696)
Credentials stored for an https:// URI were also matched against the
corresponding http:// URI, since `reduce_uri()` discards the scheme.
`HTTPPasswordMgr` and `HTTPPasswordMgrWithPriorAuth` now compare the scheme
too; URIs registered without a scheme still match any scheme.
(cherry picked from commit a7bb524fef61f77ede01f660ffbd591e1d5837ce)
Co-authored-by: Ćukasz <lukaszlapinski7@gmail.com>