You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by we...@apache.org on 2013/05/16 04:42:29 UTC

[3/3] git commit: remove the incorrect assert because response`s hdr may have Content-Range field even it`s status is 200 OK.

remove the incorrect assert because response`s hdr may have Content-Range field
even it`s status is 200 OK.


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

Branch: refs/heads/master
Commit: d9649442ae66227dd9747aaf77665e39d6368d8d
Parents: 3e8f5ce
Author: weijin <ta...@taobao.com>
Authored: Sun May 12 21:33:51 2013 +0800
Committer: weijin <ta...@taobao.com>
Committed: Thu May 16 10:41:13 2013 +0800

----------------------------------------------------------------------
 proxy/http/HttpTransact.cc |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d9649442/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index ddfdfa9..4a3938d 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -8729,8 +8729,6 @@ HttpTransact::change_response_header_because_of_range_request(State *s, HTTPHdr
   MIMEField *field;
   char *reason_phrase;
 
-  ink_assert(header->field_find(MIME_FIELD_CONTENT_RANGE, MIME_LEN_CONTENT_RANGE) == NULL);
-
   header->status_set(HTTP_STATUS_PARTIAL_CONTENT);
   reason_phrase = (char *) (http_hdr_reason_lookup(HTTP_STATUS_PARTIAL_CONTENT));
   header->reason_set(reason_phrase, strlen(reason_phrase));