allow sending requests with DELETE method
authorRafał Miłecki <zajec5@gmail.com>
Thu, 22 Jan 2015 10:45:13 +0000 (11:45 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 22 Jan 2015 11:00:01 +0000 (12:00 +0100)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
uclient-http.c

index 9f9fac94be27aa366aa5d9ea0390909d8dbf1dd4..eb69702fb287470d9abbe2b6d4a6679da48dea73 100644 (file)
@@ -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 {