Alex Leon added the comment:
It could have a 2 phase regex match. We match the first one, and if it fails,
match the second and produce a warning.
I think producing a warning is a good idea, as it allows the programmer to know
that the implementation of basic auth they are trying to connect
Alex Leon added the comment:
For some reason a caret went missing in the regex fix.
It should read
'realm=(["\']?)([^"\']*)\\2', re.I)
--
___
Python tracker
<
New submission from Alex Leon :
It looks like some servers using basic authentication don't include quotes
around the realm (example https://api.connect2field.com) as required by rfc
2617. urllib wont handle these requests and silently fails, but a simple change
to the reg