Fixes issue https://github.com/heroku/docker-registry-client/issues/8.
As explained in the issue, UploadBlob() is not working properly in case of token authentication. More precisely it cannot resend the request after the 401 Unauthorized response, because the Body (content reader) is not reusable.
Fixes issue https://github.com/heroku/docker-registry-client/issues/8. As explained in the issue, UploadBlob() is not working properly in case of token authentication. More precisely it cannot resend the request after the 401 Unauthorized response, because the Body (content reader) is not reusable.