Repository navigation
Don't send chunked transfer for DELETE requests - #166
Merged
Merged
Conversation
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.
Codecov Report
@@ Coverage Diff @@
## master #166 +/- ##
============================================
+ Coverage 65.9% 66.56% +0.66%
- Complexity 912 918 +6
============================================
Files 66 66
Lines 3936 3936
Branches 552 552
============================================
+ Hits 2594 2620 +26
+ Misses 992 971 -21
+ Partials 350 345 -5
Continue to review full report at Codecov.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds
DELETErequests to the list of HTTP methods whichshouldn't send
Transfer-Encoding: chunkedrequest headers by default.The HTTP specification states that for
GET,HEADandDELETErequests, 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
DELETEbehavior on other, similar HTTP methods.See https://jira.spring.io/browse/SPR-15947 for background information.