Skip to content

Don't send chunked transfer for DELETE requests - #166

Merged
smaldini merged 1 commit into
reactor:masterfrom
bclozel:http-delete
Sep 11, 2017
Merged

smaldini merged 1 commit into
reactor:masterfrom
bclozel:http-delete

Conversation

@bclozel

@bclozel bclozel commented Sep 11, 2017 •

Copy link
Copy Markdown
Member

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.

See https://jira.spring.io/browse/SPR-15947 for background information.

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-io

Copy link
Copy Markdown

Codecov Report

Merging #166 into master will increase coverage by 0.66%.
The diff coverage is 0%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ Complexity Δ
.../ipc/netty/http/client/MonoHttpClientResponse.java 78.08% <0%> (ø) 6 <0> (ø) ⬇️
.../ipc/netty/http/server/HttpServerWSOperations.java 60.71% <0%> (-1.79%) 13% <0%> (-1%)
...in/java/reactor/ipc/netty/channel/FluxReceive.java 78.75% <0%> (+1.55%) 58% <0%> (ø) ⬇️
...or/ipc/netty/channel/ChannelOperationsHandler.java 60.67% <0%> (+1.56%) 50% <0%> (ø) ⬇️
...or/ipc/netty/http/client/HttpClientOperations.java 55.82% <0%> (+1.62%) 69% <0%> (+2%) ⬆️
...or/ipc/netty/http/server/HttpServerOperations.java 62.8% <0%> (+1.82%) 41% <0%> (+1%) ⬆️
...a/reactor/ipc/netty/channel/ChannelOperations.java 78.57% <0%> (+4.76%) 48% <0%> (+2%) ⬆️
...tor/ipc/netty/channel/CloseableContextHandler.java 57.89% <0%> (+5.26%) 9% <0%> (+1%) ⬆️
...va/reactor/ipc/netty/channel/AbortedException.java 54.54% <0%> (+9.09%) 6% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ae8ea1...7f90032. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants