Do not set auth headers if 302
Do not set auth headers if 302

This patch ensures no auth headers are set for v1 registries if there
was a 302 redirect.

This also ensures v2 does not use authTransport.

Signed-off-by: Tibor Vass <3f1326dff4d85ad4ec938fb33f64575ace96db26@docker.com>
(cherry picked from commit 123a0582b2f9522bdfb95cceabf8dd21af758300)

AdamOssenford/docker-pi,AdamOssenford/docker-pi,AdamOssenford/docker-pi