diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-01-22 11:45:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-22 12:00:01 +0100 |
commit | 19c7fb01ad48b884672b7d8d252d3c290b9e883c (patch) | |
tree | 5e10680194a8b575a136fde59293530c9e0b652a /uclient-http.c | |
parent | 8d8c2e64db8c1e9f39bf79028da7f59fb33767f3 (diff) | |
download | uclient-19c7fb01ad48b884672b7d8d252d3c290b9e883c.tar.gz |
allow sending requests with DELETE method
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'uclient-http.c')
-rw-r--r-- | uclient-http.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |