]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5219 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Mar 2013 15:09:02 +0000 (10:09 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Mar 2013 15:09:02 +0000 (10:09 -0500)
src/mod/applications/mod_httapi/mod_httapi.c

index 9a329e7cfcbe06c201f7d8a1d542587c17e19e99..e70c95e8a0ce5ded560c86af7c3288a7821d00a1 100644 (file)
@@ -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;