summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-04-03 14:33:12 +0200
committerRalph Boehme <slow@samba.org>2019-08-07 12:54:40 +0000
commita0065c57601a16011dc1a90688a724ae8acb3377 (patch)
treeac68e45ac85d9a864f684666891e0faadadf4ccf /source4/lib
parent5ae515245c235427c5d07f473cf53015701ce4e1 (diff)
downloadsamba-a0065c57601a16011dc1a90688a724ae8acb3377.tar.gz
s4:lib/http: add support for http POST
Even though GET would work as well, only adding POST, as that's the only method that's going to be exersized in code and tests (RPC mdssvc elasticsearch backend). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Samuel Cabrero <scabrero@suse.de>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/http/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/http/http.c b/source4/lib/http/http.c
index 2d1f635d380..6be053136c8 100644
--- a/source4/lib/http/http.c
+++ b/source4/lib/http/http.c
@@ -656,6 +656,9 @@ static const char *http_method_str(enum http_cmd_type type)
const char *method;
switch (type) {
+ case HTTP_REQ_POST:
+ method = "POST";
+ break;
case HTTP_REQ_RPC_IN_DATA:
method = "RPC_IN_DATA";
break;