[OpenWrt-Devel,uclient] allow sending requests with DELETE method
diff mbox

Message ID 1421923513-20001-1-git-send-email-zajec5@gmail.com
State Accepted
Headers show

Commit Message

Rafał Miłecki Jan. 22, 2015, 10:45 a.m. UTC
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
 uclient-http.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Felix Fietkau Jan. 22, 2015, 11:01 a.m. UTC | #1
On 2015-01-22 11:45, Rafał Miłecki wrote:
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Applied, thanks.

- Felix

Patch
diff mbox

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 {