minor comment cleanup

This commit is contained in:
UnknownShadow200 2020-05-24 19:23:09 +10:00
parent bcb54eb24b
commit 9cd17a7f9a

View File

@ -669,7 +669,6 @@ typedef int CURLcode;
#define CURLOPT_NOBODY (0 + 44) #define CURLOPT_NOBODY (0 + 44)
#define CURLOPT_POST (0 + 47) #define CURLOPT_POST (0 + 47)
#define CURLOPT_FOLLOWLOCATION (0 + 52) #define CURLOPT_FOLLOWLOCATION (0 + 52)
#define CURLOPT_AUTOREFERER (0 + 58)
#define CURLOPT_POSTFIELDSIZE (0 + 60) #define CURLOPT_POSTFIELDSIZE (0 + 60)
#define CURLOPT_MAXREDIRS (0 + 68) #define CURLOPT_MAXREDIRS (0 + 68)
#define CURLOPT_HEADERFUNCTION (20000 + 79) #define CURLOPT_HEADERFUNCTION (20000 + 79)
@ -705,7 +704,7 @@ static cc_bool LoadCurlFuncs(void) {
void* lib = DynamicLib_Load2(&curlLib); void* lib = DynamicLib_Load2(&curlLib);
if (!lib) { Logger_DynamicLibWarn("loading", &curlLib); return false; } if (!lib) { Logger_DynamicLibWarn("loading", &curlLib); return false; }
/* Non-essential functions missing in older curl versions */ /* Non-essential function missing in older curl versions */
LoadCurlFunc(curl_easy_strerror); LoadCurlFunc(curl_easy_strerror);
return return
@ -815,6 +814,7 @@ static cc_result Http_SysDo(struct HttpRequest* req, String* url) {
req->data = NULL; req->data = NULL;
HttpRequest_Free(req); HttpRequest_Free(req);
} else { } else {
/* Undo POST/HEAD state */
_curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); _curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
} }