uclient-fetch: add OPTIONS request type
authorSergey Ponomarev <stokito@gmail.com>
Fri, 13 Feb 2026 07:50:12 +0000 (07:50 +0000)
committerFelix 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

index 5e46e7087337a12047336c991a9b6d226be442dd..01289a2eba07fe633f7c995aab3fb981d5751d77 100644 (file)
@@ -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",