diff options
| author | Sergey Ponomarev | 2026-02-13 07:50:12 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2026-02-13 07:53:55 +0000 |
| commit | 115c92824b6d4e2117a26cae9ccc8630ae828210 (patch) | |
| tree | 663ab28881663e3de106260c6e8fabcdf30523ed | |
| parent | 0392dfc8e8c445fc51a83674b18cc6a2f1700689 (diff) | |
| download | uclient-115c92824b6d4e2117a26cae9ccc8630ae828210.tar.gz | |
uclient-fetch: add OPTIONS request type
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -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 5e46e70..01289a2 100644 --- 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", |