This is an automated email from the ASF dual-hosted git repository.
shinrich pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 2e12b62 TS-4406: Fix %<cqpv> tag. This closes #610.
2e12b62 is described below
commit 2e12b62b6e5af184ee507bc11746d991a61d8642
Author: Susan Hinrichs <[email protected]>
AuthorDate: Mon May 2 15:59:53 2016 +0000
TS-4406: Fix %<cqpv> tag. This closes #610.
---
proxy/ProxyClientTransaction.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/ProxyClientTransaction.cc b/proxy/ProxyClientTransaction.cc
index 98c6ab5..835dc5a 100644
--- a/proxy/ProxyClientTransaction.cc
+++ b/proxy/ProxyClientTransaction.cc
@@ -54,7 +54,7 @@ ProxyClientTransaction::new_transaction()
} else {
const char *protocol_str = this->get_protocol_string();
// We don't set the plugin_tag for http, though in future we should
probably log http as protocol
- if (strncmp("http", protocol_str, 4)) {
+ if (strlen(protocol_str) != 4 || strncmp("http", protocol_str, 4)) {
current_reader->plugin_tag = protocol_str;
// Since there is no more plugin, there is no plugin id for http/2
// We are copying along the plugin_tag as a standin for protocol name
for logging
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].