Fix a bug when a POST was redirected to a GET.

We were keeping the Content-Length header, leading to conflicting
body information.