aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorJames Wheare <[email protected]>2013-06-14 17:45:36 +0100
committerIngela Anderton Andin <[email protected]>2014-02-05 10:32:24 +0100
commit2c0dabc1ea0330c765e7621483e7a96d751db0aa (patch)
tree7ade42bc2594547b149f867c348903ec2cd0cdd0 /lib/inets/src
parentdf096a3f447080d74d831cee795d456da8a569c4 (diff)
downloadotp-2c0dabc1ea0330c765e7621483e7a96d751db0aa.tar.gz
otp-2c0dabc1ea0330c765e7621483e7a96d751db0aa.tar.bz2
otp-2c0dabc1ea0330c765e7621483e7a96d751db0aa.zip
httpc: Allow content body in DELETE requests
Diffstat (limited to 'lib/inets/src')
-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 fc2081239e..6cb66cc94d 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},