aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client
diff options
context:
space:
mode:
authorFabioBatSilva <[email protected]>2016-02-22 11:10:15 -0500
committerFabioBatSilva <[email protected]>2016-02-22 11:10:15 -0500
commit0285ef94ab4d021c6bbfbe12ce6d3c1fa3c0cdda (patch)
tree07b10bcab52660a546e4d58f6c3409e45c76dd13 /lib/inets/src/http_client
parent0f6b42953eceb250dcdb61611154cc276895ea85 (diff)
downloadotp-0285ef94ab4d021c6bbfbe12ce6d3c1fa3c0cdda.tar.gz
otp-0285ef94ab4d021c6bbfbe12ce6d3c1fa3c0cdda.tar.bz2
otp-0285ef94ab4d021c6bbfbe12ce6d3c1fa3c0cdda.zip
inets: Add DELETE Body to client
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r--lib/inets/src/http_client/httpc_request.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_request.erl b/lib/inets/src/http_client/httpc_request.erl
index 5c2d31ee57..8fcfbc30c0 100644
--- a/lib/inets/src/http_client/httpc_request.erl
+++ b/lib/inets/src/http_client/httpc_request.erl
@@ -189,7 +189,8 @@ is_client_closing(Headers) ->
post_data(Method, Headers, {ContentType, Body}, HeadersAsIs)
when (Method =:= post)
orelse (Method =:= put)
- orelse (Method =:= patch) ->
+ orelse (Method =:= patch)
+ orelse (Method =:= delete) ->
NewBody = case Headers#http_request_h.expect of
"100-continue" ->