From 1b22dbb5dffe7b96e433d4d9df288774ce62c53f Mon Sep 17 00:00:00 2001 From: default Date: Thu, 30 Mar 2023 10:49:08 +0200 Subject: [PATCH] Backport from xs. --- xs_curl.h | 2 +- xs_version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xs_curl.h b/xs_curl.h index 3291499..e880a0d 100644 --- a/xs_curl.h +++ b/xs_curl.h @@ -127,7 +127,7 @@ xs_dict *xs_http_request(const char *method, const char *url, curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _data_callback); if (strcmp(method, "POST") == 0 || strcmp(method, "PUT") == 0) { - curl_easy_setopt(curl, method[1] == 'O' ? CURLOPT_POST : CURLOPT_PUT, 1L); + curl_easy_setopt(curl, method[1] == 'O' ? CURLOPT_POST : CURLOPT_UPLOAD, 1L); if (body != NULL) { if (b_size <= 0) diff --git a/xs_version.h b/xs_version.h index 854d62c..6e227d5 100644 --- a/xs_version.h +++ b/xs_version.h @@ -1 +1 @@ -/* a261bec376598d97dc10eb19f4ecb765333d071b */ +/* a4c157da387d94c849d85371ab7773b5f1446dc1 */