From: Rafał Miłecki Date: Thu, 22 Jan 2015 10:45:13 +0000 (+0100) Subject: allow sending requests with DELETE method X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=19c7fb01ad48b884672b7d8d252d3c290b9e883c;p=oweals%2Fuclient.git allow sending requests with DELETE method Signed-off-by: Rafał Miłecki --- diff --git a/uclient-http.c b/uclient-http.c index 9f9fac9..eb69702 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -41,6 +41,7 @@ enum request_type { REQ_HEAD, REQ_POST, REQ_PUT, + REQ_DELETE, __REQ_MAX }; @@ -58,6 +59,7 @@ static const char * const request_types[__REQ_MAX] = { [REQ_HEAD] = "HEAD", [REQ_POST] = "POST", [REQ_PUT] = "PUT", + [REQ_DELETE] = "DELETE", }; struct uclient_http {