diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/linux/http_upload.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/linux/http_upload.cc b/src/common/linux/http_upload.cc index 8748d117..f0f9a6de 100644 --- a/src/common/linux/http_upload.cc +++ b/src/common/linux/http_upload.cc @@ -69,9 +69,16 @@ bool HTTPUpload::SendRequest(const string &url, void *curl_lib = dlopen("libcurl.so", RTLD_NOW); if (!curl_lib) { + if (error_description != NULL) + *error_description = dlerror(); curl_lib = dlopen("libcurl.so.4", RTLD_NOW); } if (!curl_lib) { + // Debian gives libcurl a different name when it is built against GnuTLS + // instead of OpenSSL. + curl_lib = dlopen("libcurl-gnutls.so.4", RTLD_NOW); + } + if (!curl_lib) { curl_lib = dlopen("libcurl.so.3", RTLD_NOW); } if (!curl_lib) { |