diff options
| author | zhengchao <[email protected]> | 2018-10-16 21:16:58 +0800 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-10-16 21:16:58 +0800 |
| commit | 1723fa10295b538b99d4406073607bbd87e3b7af (patch) | |
| tree | 5ffda402bfb16fabbcd15dfb8e564d2cb89b5a49 /cache | |
| parent | 37b4f3a6444c25ad5c5eab89c9c00651c7e798c5 (diff) | |
大文件流式缓存联调通过。UNDEFINE类型100KB以上进行缓存。
Diffstat (limited to 'cache')
| -rw-r--r-- | cache/src/tango_cache_pending.cpp | 4 |
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) { |
