完成缓存策略和可信证书加载的开发,编译通过。

This commit is contained in:
zhengchao
2018-11-09 15:52:14 +08:00
parent d6862e4ef7
commit 62d9eb0bef
8 changed files with 628 additions and 151 deletions

View File

@@ -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)
{