Alex Leon <ael...@gmail.com> 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 to is broken, and might help with future connection attempts. Also there are currently no warnings produced by python if it fails to parse the auth header, and its hard for a developer to know why. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12541> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com