respect proxy settings across redirects

Change-Id: I3c5be049781665fcdf3b6e16c0b7cdec4445d877