diff --git a/src/mod/applications/mod_http_cache/azure.c b/src/mod/applications/mod_http_cache/azure.c index 9dd2d40d4d..61a2b2fd95 100644 --- a/src/mod/applications/mod_http_cache/azure.c +++ b/src/mod/applications/mod_http_cache/azure.c @@ -287,7 +287,7 @@ switch_status_t azure_blob_finalise_put(http_profile_t *profile, const char *url upload_info.size_left = strlen(xmlDoc); switch_curl_easy_setopt(curl_handle, CURLOPT_READFUNCTION, curl_memory_read_callback); switch_curl_easy_setopt(curl_handle, CURLOPT_READDATA, &upload_info); - switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE, strlen(xmlDoc)); + switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)strlen(xmlDoc)); //NB. we ignore connect_timeout, ssl_verifypeer, ssl_cacert, ssl_verifyhost cache options diff --git a/src/mod/applications/mod_http_cache/mod_http_cache.c b/src/mod/applications/mod_http_cache/mod_http_cache.c index 62801790fc..92c88e54b9 100644 --- a/src/mod/applications/mod_http_cache/mod_http_cache.c +++ b/src/mod/applications/mod_http_cache/mod_http_cache.c @@ -363,7 +363,7 @@ static switch_status_t http_put(url_cache_t *cache, http_profile_t *profile, swi switch_curl_easy_setopt(curl_handle, CURLOPT_READFUNCTION, read_callback); switch_curl_easy_setopt(curl_handle, CURLOPT_READDATA, &block_info); - switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE, content_length); + switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE,(curl_off_t) content_length); switch_curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1); switch_curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 10); switch_curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "freeswitch-http-cache/1.0");