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

zwoop pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit a01b4dd8017d96c1a0c2159a25393fc2ba7018dc
Author: Alan M. Carroll <[email protected]>
AuthorDate: Fri Jun 28 13:19:33 2019 -0500

    HTTP/2 - tweak for better field name handling.
    
    (cherry picked from commit 26c039d9fd0dda6e78f5ceb47fa416c5928df250)
---
 proxy/http2/Http2Stream.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/proxy/http2/Http2Stream.cc b/proxy/http2/Http2Stream.cc
index 5d17881..5fa978b 100644
--- a/proxy/http2/Http2Stream.cc
+++ b/proxy/http2/Http2Stream.cc
@@ -763,9 +763,8 @@ void
 Http2Stream::response_initialize_data_handling(bool &is_done)
 {
   is_done           = false;
-  const char *name  = "transfer-encoding";
-  const char *value = "chunked";
-  int chunked_index = response_header.value_get_index(name, strlen(name), 
value, strlen(value));
+  int chunked_index = 
response_header.value_get_index(TS_MIME_FIELD_TRANSFER_ENCODING, 
TS_MIME_LEN_TRANSFER_ENCODING,
+                                                      TS_HTTP_VALUE_CHUNKED, 
TS_HTTP_LEN_CHUNKED);
   // -1 means this value was not found for this field
   if (chunked_index >= 0) {
     Http2StreamDebug("Response is chunked");

Reply via email to