Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not set Content-Type for DELETE requests
DELETE requests, like GET requests, should not have a Content-Type header as there will not be a request body. However, rack-test attempts to set a Content-Type of application/x-www-form-urlencoded which messes with some web frameworks' test suites (including my own). Instead of trying to set a Content-Type header and request body on DELETEs, treat them more like GET requests. Signed-off-by: David Celis <me@davidcel.is>
- Loading branch information