From a0065c57601a16011dc1a90688a724ae8acb3377 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 3 Apr 2019 14:33:12 +0200 Subject: [PATCH] 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 Reviewed-by: Samuel Cabrero --- source4/lib/http/http.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.3