projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0392dfc
)
uclient-fetch: add OPTIONS request type
author
Sergey Ponomarev
<stokito@gmail.com>
Fri, 13 Feb 2026 07:50:12 +0000
(07:50 +0000)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 13 Feb 2026 07:53:55 +0000
(07:53 +0000)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
uclient-http.c
patch
|
blob
|
history
diff --git
a/uclient-http.c
b/uclient-http.c
index 5e46e7087337a12047336c991a9b6d226be442dd..01289a2eba07fe633f7c995aab3fb981d5751d77 100644
(file)
--- a/
uclient-http.c
+++ b/
uclient-http.c
@@
-42,6
+42,7
@@
enum auth_type {
enum request_type {
REQ_GET,
REQ_HEAD,
+ REQ_OPTIONS,
REQ_POST,
REQ_PUT,
REQ_DELETE,
@@
-61,6
+62,7
@@
enum http_state {
static const char * const request_types[__REQ_MAX] = {
[REQ_GET] = "GET",
[REQ_HEAD] = "HEAD",
+ [REQ_OPTIONS] = "OPTIONS",
[REQ_POST] = "POST",
[REQ_PUT] = "PUT",
[REQ_DELETE] = "DELETE",