aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-07-01 11:31:21 +0200
committerFredrik Gustafsson <[email protected]>2013-07-01 11:31:21 +0200
commitcc6e4b6ce7c2c82fb3039a9e6d46a2c90fd45cf2 (patch)
treeed3d998c0ea8a734d06151603e6214f2e0c6e1b8 /lib/inets/src/http_client
parent4c3b306184d886678d08949bcbe0186af8f984b1 (diff)
parentefe1ba19995df00facc8b8fdf552864ae1b67841 (diff)
downloadotp-cc6e4b6ce7c2c82fb3039a9e6d46a2c90fd45cf2.tar.gz
otp-cc6e4b6ce7c2c82fb3039a9e6d46a2c90fd45cf2.tar.bz2
otp-cc6e4b6ce7c2c82fb3039a9e6d46a2c90fd45cf2.zip
Merge branch 'jwh/httpc_delete_body/OTP-11190' into maint
* jwh/httpc_delete_body/OTP-11190: httpc: Allow content body in DELETE requests
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r--lib/inets/src/http_client/httpc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl
index 41bba7995e..4d7023a8e9 100644
--- a/lib/inets/src/http_client/httpc.erl
+++ b/lib/inets/src/http_client/httpc.erl
@@ -175,7 +175,7 @@ request(Method,
request(Method,
{Url, Headers, ContentType, Body},
HTTPOptions, Options, Profile)
- when ((Method =:= post) orelse (Method =:= put)) andalso
+ when ((Method =:= post) orelse (Method =:= put) orelse (Method =:= delete)) andalso
(is_atom(Profile) orelse is_pid(Profile)) ->
?hcrt("request", [{method, Method},
{url, Url},