summaryrefslogtreecommitdiff
path: root/src/curl
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl')
-rw-r--r--src/curl/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/curl/http.c b/src/curl/http.c
index 364b32e..0088f4f 100644
--- a/src/curl/http.c
+++ b/src/curl/http.c
@@ -169,13 +169,13 @@ static bool init_request_internal(struct nn_http *http, u8 method)
struct nn_curl *curl = &http->curl;
switch (method) {
case NNWT_HTTP_HEAD:
- curl_easy_setopt(curl->handle, CURLOPT_NOBODY, 1);
+ curl_easy_setopt(curl->handle, CURLOPT_NOBODY, 1L);
break;
case NNWT_HTTP_GET:
- curl_easy_setopt(curl->handle, CURLOPT_HTTPGET, 1);
+ curl_easy_setopt(curl->handle, CURLOPT_HTTPGET, 1L);
break;
case NNWT_HTTP_POST:
- curl_easy_setopt(curl->handle, CURLOPT_POST, 1);
+ curl_easy_setopt(curl->handle, CURLOPT_POST, 1L);
break;
}
curl_easy_setopt(curl->handle, CURLOPT_WRITEFUNCTION, stream_write_callback);