aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorJames Wheare <[email protected]>2013-06-14 17:45:36 +0100
committerJames Wheare <[email protected]>2013-06-14 18:17:49 +0100
commitefe1ba19995df00facc8b8fdf552864ae1b67841 (patch)
treec994223b98173217d4ce9bc00a74a57a96ee2973 /lib/inets/src
parent5dd13b1efead2a8101ff1fb46937fbfa00db5269 (diff)
downloadotp-efe1ba19995df00facc8b8fdf552864ae1b67841.tar.gz
otp-efe1ba19995df00facc8b8fdf552864ae1b67841.tar.bz2
otp-efe1ba19995df00facc8b8fdf552864ae1b67841.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 64a60b82aa..0cebf1de7b 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},