Replace basic auth with bearer
Replace basic auth with bearer

I found that this was necessary to get it to work with registry-1.docker.io.

Otherwise it sends two Authorization headers, one Basic and one Bearer, and I think the server only looks at the first.
yangjunsss/docker-registry-client,yangjunsss/docker-registry-client,wind0r/docker-registry-client,heroku/docker-registry-client,heroku/docker-registry-client