完成缓存策略和可信证书加载的开发,编译通过。
This commit is contained in:
11
cache/src/tango_cache_pending.cpp
vendored
11
cache/src/tango_cache_pending.cpp
vendored
@@ -284,15 +284,14 @@ enum cache_pending_action tfe_cache_put_pending(const struct tfe_http_half *resp
|
||||
memset(freshness,0,sizeof(struct response_freshness));
|
||||
if(response->resp_spec.resp_code!=TFE_HTTP_STATUS_OK
|
||||
|| NULL!=tfe_http_std_field_read(response, TFE_HTTP_CONT_RANGE) //NOT upload response with content-range
|
||||
|| NULL==response->resp_spec.content_length)
|
||||
{
|
||||
return FORBIDDEN;
|
||||
}
|
||||
value=tfe_http_std_field_read(response, TFE_HTTP_SET_COOKIE);
|
||||
if(value!=NULL)
|
||||
|| NULL==response->resp_spec.content_length
|
||||
|| NULL!=tfe_http_std_field_read(response, TFE_HTTP_AUTHORIZATION)
|
||||
|| NULL!=tfe_http_nonstd_field_read(response, "WWW-Authenticate")
|
||||
|| NULL!=tfe_http_std_field_read(response, TFE_HTTP_SET_COOKIE))
|
||||
{
|
||||
return FORBIDDEN;
|
||||
}
|
||||
|
||||
value = tfe_http_std_field_read(response, TFE_HTTP_PRAGMA);
|
||||
if (value != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user