mod_httapi: Fix Cache-Control max-age= parameter string (length) check

This is probably what you had in mind...

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
Stefan Knoblich 2012-01-06 23:08:45 +01:00
parent b1ec52b024
commit 27a3f1ccf2
1 changed files with 1 additions and 1 deletions

View File

@ -1949,7 +1949,7 @@ static switch_status_t write_meta_file(http_file_context_t *context, const char
if (headers && (cc = switch_event_get_header(headers, "Cache-Control")) && (p = switch_stristr("max-age=", cc))) {
p += 8;
if (p) {
if (!zstr(p)) {
ttl = atoi(p);
if (ttl < 0) ttl = globals.cache_ttl;
}