aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/mod_esi.erl
diff options
context:
space:
mode:
authorZandra <[email protected]>2016-02-02 10:46:22 +0100
committerZandra <[email protected]>2016-02-02 10:46:22 +0100
commitbdfc7355e066db8812dec0c3aa70a0fae0e5d6ac (patch)
tree6f8890b4e828cc95a72205ccf2d25f761f54fffb /lib/inets/src/http_server/mod_esi.erl
parent0f15f90ef5f482b0e860e41438151a5d9c4859e7 (diff)
parentb20321973be4d8f7be2f766ac51d2a7b9d5d120f (diff)
downloadotp-bdfc7355e066db8812dec0c3aa70a0fae0e5d6ac.tar.gz
otp-bdfc7355e066db8812dec0c3aa70a0fae0e5d6ac.tar.bz2
otp-bdfc7355e066db8812dec0c3aa70a0fae0e5d6ac.zip
Merge branch 'palas/maint' into maint
* palas/maint: inets: Add PATCH method to client and server OTP-13286
Diffstat (limited to 'lib/inets/src/http_server/mod_esi.erl')
-rw-r--r--lib/inets/src/http_server/mod_esi.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/inets/src/http_server/mod_esi.erl b/lib/inets/src/http_server/mod_esi.erl
index 967bd6bbf3..2978ac9095 100644
--- a/lib/inets/src/http_server/mod_esi.erl
+++ b/lib/inets/src/http_server/mod_esi.erl
@@ -282,6 +282,15 @@ erl(#mod{request_uri = ReqUri,
?NICE("Erl mechanism doesn't support method DELETE")}}|
Data]};
+erl(#mod{request_uri = ReqUri,
+ method = "PATCH",
+ http_version = Version,
+ data = Data}, _ESIBody, _Modules) ->
+ ?hdrt("erl", [{method, patch}]),
+ {proceed, [{status,{501,{"PATCH", ReqUri, Version},
+ ?NICE("Erl mechanism doesn't support method PATCH")}}|
+ Data]};
+
erl(#mod{method = "POST",
entity_body = Body} = ModData, ESIBody, Modules) ->
?hdrt("erl", [{method, post}]),