projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow sending requests with DELETE method
[project/uclient.git]
/
uclient-http.c
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 {