Fix crash when receiving a HTTP redirect upon a POST request

The crash was introduced by a recent commit.
Keep the same method on a 307 redirect