summaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2018-12-17 10:07:04 +0600
committerzhengchao <[email protected]>2018-12-17 10:07:04 +0600
commitdbeedd3f9cddfddee267212e3e7bf792eb0442a9 (patch)
treea76852afc95cf7a17d05050fc63c78b3b38f4b4a /cache
parent3d710accd36680cfacab3c3154947ba24a39280d (diff)
去掉GMT时间格式的assert,改为if。
Diffstat (limited to 'cache')
-rw-r--r--cache/src/tango_cache_pending.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cache/src/tango_cache_pending.cpp b/cache/src/tango_cache_pending.cpp
index 2cfece3..8d803d9 100644
--- a/cache/src/tango_cache_pending.cpp
+++ b/cache/src/tango_cache_pending.cpp
@@ -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))