diff options
author | Pablo Lamela <[email protected]> | 2015-12-08 17:45:55 +0000 |
---|---|---|
committer | Pablo Lamela <[email protected]> | 2015-12-08 19:39:48 +0000 |
commit | b20321973be4d8f7be2f766ac51d2a7b9d5d120f (patch) | |
tree | 6387b62758c150170067740f1fd5cea9ee78d40d /lib/inets/src/http_server/mod_cgi.erl | |
parent | a16b7d63cc665dca90305b146c15de04487808db (diff) | |
download | otp-b20321973be4d8f7be2f766ac51d2a7b9d5d120f.tar.gz otp-b20321973be4d8f7be2f766ac51d2a7b9d5d120f.tar.bz2 otp-b20321973be4d8f7be2f766ac51d2a7b9d5d120f.zip |
inets: Add PATCH method to client and server
Diffstat (limited to 'lib/inets/src/http_server/mod_cgi.erl')
-rw-r--r-- | lib/inets/src/http_server/mod_cgi.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/inets/src/http_server/mod_cgi.erl b/lib/inets/src/http_server/mod_cgi.erl index 25d9f05028..ec8b9be32e 100644 --- a/lib/inets/src/http_server/mod_cgi.erl +++ b/lib/inets/src/http_server/mod_cgi.erl @@ -337,6 +337,8 @@ script_elements(#mod{method = "GET"}, {PathInfo, QueryString}) -> [{query_string, QueryString}, {path_info, PathInfo}]; script_elements(#mod{method = "POST", entity_body = Body}, _) -> [{entity_body, Body}]; +script_elements(#mod{method = "PATCH", entity_body = Body}, _) -> + [{entity_body, Body}]; script_elements(#mod{method = "PUT", entity_body = Body}, _) -> [{entity_body, Body}]; script_elements(_, _) -> |