去掉GMT时间格式的assert,改为if。
This commit is contained in:
6
cache/src/tango_cache_pending.cpp
vendored
6
cache/src/tango_cache_pending.cpp
vendored
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user