统一缓存统计的定义,缓存查询/下载=get,上传=put。上次提交漏了一个gmt的判断。

This commit is contained in:
zhengchao
2018-10-21 11:08:44 +08:00
parent 09db5de25b
commit c94b267a65
2 changed files with 10 additions and 11 deletions

View File

@@ -234,9 +234,8 @@ void get_response_freshness(const struct tfe_http_half *response, struct respons
freshness->date = absolute_to_relative_time(field_value);;
}
field_value = tfe_http_std_field_read(response, TFE_HTTP_LAST_MODIFIED);
if (field_value != NULL)
if (field_value != NULL && is_standard_gmt_format(field_value))
{
assert(is_standard_gmt_format(field_value));
freshness->last_modified = absolute_to_relative_time(field_value);;
}
}