Support installation under basic authentication.
Merge pull request #187 from kobake/basic-auth-install-repair

Support installation under basic authentication.