summaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2018-10-16 21:16:58 +0800
committerzhengchao <[email protected]>2018-10-16 21:16:58 +0800
commit1723fa10295b538b99d4406073607bbd87e3b7af (patch)
tree5ffda402bfb16fabbcd15dfb8e564d2cb89b5a49 /cache
parent37b4f3a6444c25ad5c5eab89c9c00651c7e798c5 (diff)
大文件流式缓存联调通过。UNDEFINE类型100KB以上进行缓存。
Diffstat (limited to 'cache')
-rw-r--r--cache/src/tango_cache_pending.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache/src/tango_cache_pending.cpp b/cache/src/tango_cache_pending.cpp
index dc3eea0..67b935d 100644
--- a/cache/src/tango_cache_pending.cpp
+++ b/cache/src/tango_cache_pending.cpp
@@ -273,6 +273,10 @@ enum cache_pending_action tfe_cache_put_pending(const struct tfe_http_half *resp
int index = 0;
const char *value = NULL;
memset(freshness,0,sizeof(struct response_freshness));
+ if(response->resp_spec.resp_code!=TFE_HTTP_STATUS_OK)
+ {
+ return FORBIDDEN;
+ }
value = tfe_http_std_field_read(response, TFE_HTTP_PRAGMA);
if (value != NULL)
{