Repository: trafficserver Updated Branches: refs/heads/master 33fa7f756 -> 70227c26c
[TS-3199]: use pre-defined constants for method/len like James Peach suggested Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/70227c26 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/70227c26 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/70227c26 Branch: refs/heads/master Commit: 70227c26cba1696a42609dba79bc5e4f87926961 Parents: 33fa7f7 Author: Sudheer Vinukonda <[email protected]> Authored: Sat Nov 15 00:44:43 2014 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Sat Nov 15 00:44:43 2014 +0000 ---------------------------------------------------------------------- proxy/FetchSM.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/70227c26/proxy/FetchSM.cc ---------------------------------------------------------------------- diff --git a/proxy/FetchSM.cc b/proxy/FetchSM.cc index ad7e655..ed6fd8e 100644 --- a/proxy/FetchSM.cc +++ b/proxy/FetchSM.cc @@ -560,7 +560,7 @@ FetchSM::ext_init(Continuation *cont, const char *method, req_buffer->write(version, strlen(version)); req_buffer->write("\r\n", 2); - if ((method_len == strlen("HEAD")) && !memcmp(method, "HEAD", method_len)) { + if ((method_len == HTTP_LEN_HEAD) && !memcmp(method, HTTP_METHOD_HEAD, HTTP_LEN_HEAD)) { is_method_head = true; } }
