From dbeedd3f9cddfddee267212e3e7bf792eb0442a9 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 17 Dec 2018 10:07:04 +0600 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89GMT=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=9A=84assert=EF=BC=8C=E6=94=B9=E4=B8=BAif?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache/src/tango_cache_pending.cpp | 6 ++++-- 1 file 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))