完成cache参数解析部分的编码。
This commit is contained in:
6
cache/src/tango_cache_pending.cpp
vendored
6
cache/src/tango_cache_pending.cpp
vendored
@@ -115,7 +115,9 @@ enum cache_pending_action tfe_cache_get_pending(const struct tfe_http_half *requ
|
||||
{
|
||||
return FORBIDDEN;
|
||||
}
|
||||
if(NULL!=tfe_http_std_field_read(request, TFE_HTTP_CONT_RANGE))
|
||||
if(NULL!=tfe_http_std_field_read(request, TFE_HTTP_CONT_RANGE) ||
|
||||
NULL!=tfe_http_std_field_read(request, TFE_HTTP_AUTHORIZATION)||
|
||||
NULL!=tfe_http_nonstd_field_read(request, "WWW-Authenticate"))
|
||||
{
|
||||
return FORBIDDEN;
|
||||
}
|
||||
@@ -306,7 +308,7 @@ enum cache_pending_action tfe_cache_put_pending(const struct tfe_http_half *resp
|
||||
else
|
||||
{
|
||||
value = tfe_http_std_field_read(response, TFE_HTTP_EXPIRES);
|
||||
if (value != NULL)
|
||||
if (value != NULL && 0!= read_GMT_time(value))
|
||||
{
|
||||
res = ALLOWED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user