diff options
| author | 2023-03-30 10:49:08 +0200 | |
|---|---|---|
| committer | 2023-03-30 10:49:08 +0200 | |
| commit | 1b22dbb5dffe7b96e433d4d9df288774ce62c53f (patch) | |
| tree | f9562a7bb85ab4002c4a67b527085f36b105c467 | |
| parent | Updated TODO. (diff) | |
| download | snac2-1b22dbb5dffe7b96e433d4d9df288774ce62c53f.tar.gz snac2-1b22dbb5dffe7b96e433d4d9df288774ce62c53f.tar.xz snac2-1b22dbb5dffe7b96e433d4d9df288774ce62c53f.zip | |
Backport from xs.
| -rw-r--r-- | xs_curl.h | 2 | ||||
| -rw-r--r-- | xs_version.h | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -127,7 +127,7 @@ xs_dict *xs_http_request(const char *method, const char *url, | |||
| 127 | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _data_callback); | 127 | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _data_callback); |
| 128 | 128 | ||
| 129 | if (strcmp(method, "POST") == 0 || strcmp(method, "PUT") == 0) { | 129 | if (strcmp(method, "POST") == 0 || strcmp(method, "PUT") == 0) { |
| 130 | curl_easy_setopt(curl, method[1] == 'O' ? CURLOPT_POST : CURLOPT_PUT, 1L); | 130 | curl_easy_setopt(curl, method[1] == 'O' ? CURLOPT_POST : CURLOPT_UPLOAD, 1L); |
| 131 | 131 | ||
| 132 | if (body != NULL) { | 132 | if (body != NULL) { |
| 133 | if (b_size <= 0) | 133 | 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 */ | ||