kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 93bf18be81aa9e2a0353416b63b276d74ffdc49c
parent 480e589dd5f36243dd06fbcf0e2852682bd21802
Author: Joris Vink <joris@coders.se>
Date:   Mon,  6 Dec 2021 14:44:07 +0100

Handle DELETE maybe having a request body.

Diffstat:
src/curl.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/curl.c b/src/curl.c @@ -407,18 +407,17 @@ kore_curl_http_setup(struct kore_curl *client, int method, const void *data, switch (method) { case HTTP_METHOD_GET: + case HTTP_METHOD_OPTIONS: break; case HTTP_METHOD_HEAD: curl_easy_setopt(client->handle, CURLOPT_NOBODY, 1); break; - case HTTP_METHOD_DELETE: - case HTTP_METHOD_OPTIONS: - break; case HTTP_METHOD_PUT: has_body = 1; curl_easy_setopt(client->handle, CURLOPT_UPLOAD, 1); break; case HTTP_METHOD_PATCH: + case HTTP_METHOD_DELETE: mname = http_method_text(method); /* fallthrough */ case HTTP_METHOD_POST: