]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4886 --resolve the file permisions must be set properly by you, you must have...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 3 Dec 2012 14:07:24 +0000 (08:07 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 3 Dec 2012 14:07:24 +0000 (08:07 -0600)
src/mod/applications/mod_httapi/mod_httapi.c

index 845c342f63b07b2e23fed40b5dcffc2c021fd81d..275e2f47ff65c3cbe57b60ad0224bdb41938791d 100644 (file)
@@ -2565,7 +2565,12 @@ static switch_status_t locate_url_file(http_file_context_t *context, const char
        }
 
 
-       fetch_cache_data(context, url, &headers, context->cache_file);
+       if ((status = fetch_cache_data(context, url, &headers, context->cache_file)) != SWITCH_STATUS_SUCCESS) {
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error checking file cache (check permissions)\n");
+               goto end;
+       }
+
+
        metadata = switch_core_sprintf(context->pool, "%s:%s:%s:%s",
                                                                   url,
                                                                   switch_event_get_header_nil(headers, "last-modified"),