From ae151927aefbcdb14c058a784e875a2be6500db3 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Wed, 28 Mar 2018 17:34:47 +0200 Subject: [PATCH] Add support for PATCH http method This is needed to improve out APIs. --- include/ejabberd_http.hrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ejabberd_http.hrl b/include/ejabberd_http.hrl index 5718ff033..3c38969ca 100644 --- a/include/ejabberd_http.hrl +++ b/include/ejabberd_http.hrl @@ -46,6 +46,6 @@ buf :: binary(), http_opts = [] :: list()}). --type method() :: 'GET' | 'HEAD' | 'DELETE' | 'OPTIONS' | 'PUT' | 'POST' | 'TRACE'. +-type method() :: 'GET' | 'HEAD' | 'DELETE' | 'OPTIONS' | 'PUT' | 'POST' | 'TRACE' | 'PATCH'. -type protocol() :: http | https. -type http_request() :: #request{}.