去掉GMT时间格式的assert,改为if。

This commit is contained in:
zhengchao
2018-12-17 10:07:04 +06:00
parent 3d710accd3
commit dbeedd3f9c

View File

@@ -226,8 +226,10 @@ void get_response_freshness(const struct tfe_http_half *response, struct respons
field_value = tfe_http_std_field_read(response, TFE_HTTP_DATE);
if (field_value != NULL)
{
assert(is_standard_gmt_format(field_value));
freshness->date = read_GMT_time(field_value);;
if(is_standard_gmt_format(field_value))
{
freshness->date = read_GMT_time(field_value);;
}
}
field_value = tfe_http_std_field_read(response, TFE_HTTP_LAST_MODIFIED);
if (field_value != NULL && is_standard_gmt_format(field_value))