You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2016/04/28 21:44:20 UTC

[trafficserver] branch 6.1.x updated: TS-4299 Allows for the content length to be processed even with C: close

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

zwoop pushed a commit to branch 6.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/6.1.x by this push:
       new  a7f4f25   TS-4299 Allows for the content length to be processed even with C: close
a7f4f25 is described below

commit a7f4f25fb42fb9171dda4c2cf925e2e95655da0b
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Wed Mar 30 09:07:17 2016 -0600

    TS-4299 Allows for the content length to be processed even with C: close
    
    This closes #549
    
    (cherry picked from commit f0ce965e3ded41ad55e199f4eb9f883c08446d96)
---
 proxy/FetchSM.cc | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/proxy/FetchSM.cc b/proxy/FetchSM.cc
index 045e26a..1a94b39 100644
--- a/proxy/FetchSM.cc
+++ b/proxy/FetchSM.cc
@@ -128,12 +128,14 @@ FetchSM::has_body()
   if (check_chunked())
     return true;
 
-  if (check_connection_close())
-    return true;
-
   resp_content_length = hdr->value_get_int64(MIME_FIELD_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH);
-  if (!resp_content_length)
-    return false;
+  if (!resp_content_length) {
+    if (check_connection_close()) {
+      return true;
+    } else {
+      return false;
+    }
+  }
 
   return true;
 }

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