Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

未处理其他错误码的情况,简单的判断是否有centent-length不是很妥当 #4

Open
zhxiaom5 opened this issue Sep 11, 2017 · 0 comments

Comments

@zhxiaom5
Copy link

//add by wangfeng
    if(get_content_length(txnp, txn_state) == false){

      DEBUG_LOG("warnning. response is not include content_length, attempting to disable cache write.");

      TSHttpHdrReasonSet(response, resp_hdr, "oxwangfeng",10);

      TSHandleMLocRelease(response, resp_hdr, NULL);
      return;
    }

这样处理不太合适吧,不知道贵司cdn还好不,这地方的逻辑,会导致304回源有问题吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant