From: Ralph Boehme Date: Wed, 3 Apr 2019 12:33:12 +0000 (+0200) Subject: s4:lib/http: add support for http POST X-Git-Tag: tdb-1.4.2~265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0065c57601a16011dc1a90688a724ae8acb3377;p=thirdparty%2Fsamba.git 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 --- 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;