提交 27a3f1cc authored 作者: Stefan Knoblich's avatar Stefan Knoblich

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

This is probably what you had in mind...
Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
上级 b1ec52b0
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论