缓存功能整体流程调试通过。

This commit is contained in:
zhengchao
2018-10-15 11:44:48 +08:00
parent edfc265a36
commit fdde1fb3a8
4 changed files with 24 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ struct cache_update_context* web_cache_update_start(struct cache_handle* handle,
memset(&meta, 0, sizeof(meta));
meta.url=session->req->req_spec.url;
i=0;
snprintf(buffer, sizeof(buffer), "content-type:%s",session->resp->resp_spec.content_length);
snprintf(buffer, sizeof(buffer), "content-type:%s",session->resp->resp_spec.content_type);
meta.std_hdr[i]=buffer;
i++;
memcpy(&meta.put, &resp_freshness, sizeof(resp_freshness));