HTTP authentication fixes (v2)
Created originally on Bitbucket by pmezard (Patrick Mézard)
Was already merged in Bitbucket before import, marked as merged by the import user
The same than the first pull request with the referenced Mercurial changeset identifier fixed.