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/07 19:49:04 UTC

trafficserver git commit: TS-4299 Allows for the content length to be processed even with C: close

Repository: trafficserver
Updated Branches:
  refs/heads/master d1557bf52 -> f0ce965e3


TS-4299 Allows for the content length to be processed even with C: close

This closes #549


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f0ce965e
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f0ce965e
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f0ce965e

Branch: refs/heads/master
Commit: f0ce965e3ded41ad55e199f4eb9f883c08446d96
Parents: d1557bf
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Mar 30 09:07:17 2016 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Thu Apr 7 11:44:11 2016 -0600

----------------------------------------------------------------------
 proxy/FetchSM.cc | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f0ce965e/proxy/FetchSM.cc
----------------------------------------------------------------------
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;
 }