client: follow redirects
Merge pull request #1571 from bcwaldon/client-redirects

client: follow redirects