Follow redirects on non-GET requests also.

Fixes #2808.