From 19c7fb01ad48b884672b7d8d252d3c290b9e883c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 22 Jan 2015 11:45:13 +0100 Subject: [PATCH] allow sending requests with DELETE method MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki --- uclient-http.c | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.25.1