Mercurial > minori
comparison src/core/http.cc @ 385:aa38b904de4f
http: fix incorrect type in curl_easy_setopt
hahaha
| author | Paper <paper@tflc.us> |
|---|---|
| date | Thu, 06 Nov 2025 08:58:05 -0500 |
| parents | 47c9f8502269 |
| children | 1e5d922fe82b |
comparison
equal
deleted
inserted
replaced
| 384:0393debc0ed2 | 385:aa38b904de4f |
|---|---|
| 87 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list); | 87 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list); |
| 88 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &userdata); | 88 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &userdata); |
| 89 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &WriteCallback); | 89 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &WriteCallback); |
| 90 /* Use system certs... useful on Windows. */ | 90 /* Use system certs... useful on Windows. */ |
| 91 curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); | 91 curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); |
| 92 curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); // threading | 92 curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); // threading |
| 93 CURLcode res = curl_easy_perform(curl); | 93 CURLcode res = curl_easy_perform(curl); |
| 94 session.IncrementRequests(); | 94 session.IncrementRequests(); |
| 95 curl_easy_cleanup(curl); | 95 curl_easy_cleanup(curl); |
| 96 if (res != CURLE_OK) | 96 if (res != CURLE_OK) |
| 97 session.SetStatusBar(std::string("curl_easy_perform(curl) failed!: ") + curl_easy_strerror(res)); | 97 session.SetStatusBar(std::string("curl_easy_perform(curl) failed!: ") + curl_easy_strerror(res)); |
| 177 | 177 |
| 178 /* Use system certs... useful on Windows. */ | 178 /* Use system certs... useful on Windows. */ |
| 179 curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); | 179 curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); |
| 180 | 180 |
| 181 /* does something with threading, don't remember what though */ | 181 /* does something with threading, don't remember what though */ |
| 182 curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); | 182 curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); |
| 183 | 183 |
| 184 CURLcode res = curl_easy_perform(curl); | 184 CURLcode res = curl_easy_perform(curl); |
| 185 session.IncrementRequests(); | 185 session.IncrementRequests(); |
| 186 curl_easy_cleanup(curl); | 186 curl_easy_cleanup(curl); |
| 187 | 187 |
