diff options
| author | zhengchao <[email protected]> | 2018-11-02 20:38:06 +0800 |
|---|---|---|
| committer | Lu Qiuwen <[email protected]> | 2018-11-04 14:58:54 +0800 |
| commit | 668c1b3e52dedd5adb03e65aa0df9dd2c658ede3 (patch) | |
| tree | 100fdc66dae31fce23943bdfab07d6d4f7df6402 /plugin/business/pangu-http/src/pangu_web_cache.cpp | |
| parent | d0ea605a5b8c99f13cd75f5551dcd36c40c06fb1 (diff) | |
#68 从目录中加载额外的证书和crl。
Diffstat (limited to 'plugin/business/pangu-http/src/pangu_web_cache.cpp')
| -rw-r--r-- | plugin/business/pangu-http/src/pangu_web_cache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/business/pangu-http/src/pangu_web_cache.cpp b/plugin/business/pangu-http/src/pangu_web_cache.cpp index 27182ea..e82919f 100644 --- a/plugin/business/pangu-http/src/pangu_web_cache.cpp +++ b/plugin/business/pangu-http/src/pangu_web_cache.cpp @@ -329,7 +329,7 @@ void cached_meta_set(struct cached_meta* meta, enum CACHE_RESULT_TYPE type, cons break; case RESULT_TYPE_USERTAG: meta->last_modified=read_http1_hdr(data_frag, "Last-Modified"); - if(0==strcasecmp(meta->last_modified, "Thu, 01 Jan 1970 00:00:00 GMT")) + if(meta->last_modified!=NULL && 0==strcasecmp(meta->last_modified, "Thu, 01 Jan 1970 00:00:00 GMT")) { FREE(&(meta->last_modified)); } @@ -704,7 +704,6 @@ void web_cache_update(struct cache_update_context* ctx, const unsigned char * bo } void web_cache_update_end(struct cache_update_context* ctx) { - fprintf(stderr, "------- web_cache_update_end , %p\n", ctx); tango_cache_update_end(ctx->write_ctx); ATOMIC_DEC(&(ctx->ref_cache_handle->stat_val[STAT_CACHE_UPLOADING])); |
