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

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


The following commit(s) were added to refs/heads/master by this push:
     new c652da9  Fix unintialized request_content_length in 
HttpSM::state_read_client_request_header
c652da9 is described below

commit c652da90bd3dd4f7f2060bf9b0087b5808ec594c
Author: scw00 <[email protected]>
AuthorDate: Mon Jun 12 11:48:38 2017 +0800

    Fix unintialized request_content_length in 
HttpSM::state_read_client_request_header
    
    request_content_length is unintialized in 
HttpSM::state_read_client_request_header.
    So we need to get cl in client_request header.
---
 proxy/http/HttpSM.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index b321fb8..e70be84 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -724,7 +724,8 @@ HttpSM::state_read_client_request_header(int event, void 
*data)
     }
 
     if (t_state.hdr_info.client_request.method_get_wksidx() == 
HTTP_WKSIDX_TRACE ||
-        (t_state.hdr_info.request_content_length <= 0 && 
t_state.client_info.transfer_encoding != HttpTransact::CHUNKED_ENCODING)) {
+        (t_state.hdr_info.client_request.get_content_length() == 0 &&
+         t_state.client_info.transfer_encoding != 
HttpTransact::CHUNKED_ENCODING)) {
       // Enable further IO to watch for client aborts
       ua_entry->read_vio->reenable();
     } else {

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to