projects
/
oweals
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8c2e6
)
allow sending requests with DELETE method
author
Rafał Miłecki
<zajec5@gmail.com>
Thu, 22 Jan 2015 10:45:13 +0000
(11:45 +0100)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/uclient-http.c
b/uclient-http.c
index 9f9fac94be27aa366aa5d9ea0390909d8dbf1dd4..eb69702fb287470d9abbe2b6d4a6679da48dea73 100644
(file)
--- 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 {