]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix bug with max-age
authorChristopher Rienzo <chris@rienzo.net>
Wed, 25 Apr 2012 01:30:47 +0000 (01:30 +0000)
committerChristopher Rienzo <chris@rienzo.net>
Wed, 25 Apr 2012 01:30:47 +0000 (01:30 +0000)
src/mod/applications/mod_http_cache/mod_http_cache.c

index 9ea3435ea186a9c7c0003977d0fda0caa375895e..1e40ce2e1590009652c7fdf2625163c340dd983b 100644 (file)
@@ -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);
 }