From: Christopher Rienzo Date: Wed, 25 Apr 2012 01:30:47 +0000 (+0000) Subject: fix bug with max-age X-Git-Tag: v1.2-rc1~17^2~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4178393a73dc3ed2137491e1da0dfcf92fcd9fbf;p=thirdparty%2Ffreeswitch.git fix bug with max-age --- 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 9ea3435ea1..1e40ce2e15 100644 --- a/src/mod/applications/mod_http_cache/mod_http_cache.c +++ b/src/mod/applications/mod_http_cache/mod_http_cache.c @@ -365,7 +365,7 @@ static void process_cache_control_header(cached_url_t *url, char *data) return; } - url->max_age = switch_time_now() + (max_age * 1000 * 1000); + url->max_age = max_age * 1000 * 1000; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "setting max age to %u seconds from now\n", (int)max_age); }