Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't send chunked transfer for DELETE requests
This commit adds `DELETE` requests to the list of HTTP methods which shouldn't send `Transfer-Encoding: chunked` request headers by default. The HTTP specification states that for `GET`, `HEAD` and `DELETE` requests, a payload has "no defined semantics" and "might cause existing implementations to reject the request". See https://tools.ietf.org/html/rfc7231#section-4.3.5 This commit aligns the `DELETE` behavior on other, similar HTTP methods.
- Loading branch information