This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 7d6097e  Skip HTTP/1.1 response headers
7d6097e is described below

commit 7d6097e360430a2494e154b55c9e9f77b949f6ce
Author: Masaori Koshiba <masa...@apache.org>
AuthorDate: Fri Sep 22 14:51:37 2017 +0900

    Skip HTTP/1.1 response headers
---
 proxy/hq/HQClientTransaction.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/hq/HQClientTransaction.cc b/proxy/hq/HQClientTransaction.cc
index e217ce2..3284c40 100644
--- a/proxy/hq/HQClientTransaction.cc
+++ b/proxy/hq/HQClientTransaction.cc
@@ -243,7 +243,7 @@ HQClientTransaction::_write_response()
 {
   IOBufferReader *reader = this->_write_vio.get_reader();
 
-  if (memcmp(reader->start(), http_1_1_version, sizeof(http_1_1_version)) == 
0) {
+  if (memcmp(reader->start(), http_1_1_version, sizeof(http_1_1_version) - 1) 
== 0) {
     // Skip HTTP/1.1 response headers
     IOBufferBlock *headers = reader->get_current_block();
     int64_t headers_size   = headers->read_avail();

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to