Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safeguard against redirects on POST request
A redirect on a POST request will make the http client perform a GET request to the signposted URL. This will (probably) return a 200, which the code will then interpret as a successful POST. This check ensures that the method the response relates to is the same as the one we invoked.
- Loading branch information