commit 1b22dbb
default
·
2023-03-30 08:49:08 +0000 UTC
parent e187302
Backport from xs.
2 files changed,
+2,
-2
+1,
-1
1@@ -127,7 +127,7 @@ xs_dict *xs_http_request(const char *method, const char *url,
2 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _data_callback);
3
4 if (strcmp(method, "POST") == 0 || strcmp(method, "PUT") == 0) {
5- curl_easy_setopt(curl, method[1] == 'O' ? CURLOPT_POST : CURLOPT_PUT, 1L);
6+ curl_easy_setopt(curl, method[1] == 'O' ? CURLOPT_POST : CURLOPT_UPLOAD, 1L);
7
8 if (body != NULL) {
9 if (b_size <= 0)
+1,
-1
1@@ -1 +1 @@
2-/* a261bec376598d97dc10eb19f4ecb765333d071b */
3+/* a4c157da387d94c849d85371ab7773b5f1446dc1 */