Do not copy query parameters across redirects

When following redirects, do not copy query arguments to the request
made by following the Location header.

close #490