From 10af50d96c864ba7786ad7822a5504e65dc65a1b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 26 Mar 2013 10:09:02 -0500 Subject: [PATCH] FS-5219 --resolve --- src/mod/applications/mod_httapi/mod_httapi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 9a329e7cfc..e70c95e8a0 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -2418,11 +2418,10 @@ static switch_status_t fetch_cache_data(http_file_context_t *context, const char curl_handle = switch_curl_easy_init(); switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1); + switch_curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1); - if (!strncasecmp(url, "https", 5)) { - switch_curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0); - switch_curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0); - } + switch_curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0); + switch_curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0); client.max_bytes = HTTAPI_MAX_FILE_BYTES;