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 2012/01/30 18:36:09 UTC

git commit: Oops, undo another bad commit.

Updated Branches:
  refs/heads/master 234dc77d8 -> c9a3765c4


Oops, undo another bad commit.


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

Branch: refs/heads/master
Commit: c9a3765c465eaea7bb1d6abae7a9b12aaccc8c7f
Parents: 234dc77
Author: Leif Hedstrom <zw...@apache.org>
Authored: Mon Jan 30 10:35:40 2012 -0700
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Mon Jan 30 10:35:40 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c9a3765c/proxy/hdrs/MIME.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/MIME.cc b/proxy/hdrs/MIME.cc
index a89384a..d1f2b3d 100644
--- a/proxy/hdrs/MIME.cc
+++ b/proxy/hdrs/MIME.cc
@@ -2161,7 +2161,6 @@ mime_scanner_append(MIMEScanner *scanner, const char *data, int data_size)
   //////////////////////////////////////////////////////
   // if not enough space, allocate or grow the buffer //
   //////////////////////////////////////////////////////
-
   if (data_size > free_size) {    // need to allocate/grow the buffer
     if (scanner->m_line_size == 0)      // buffer should be at least 128 bytes
       scanner->m_line_size = 128;
@@ -2279,7 +2278,6 @@ mime_scanner_get(MIMEScanner *S,
   if (data_size && S->m_line_length) {
     // If we're already accumulating, continue to do so if we have data.
     mime_scanner_append(S, *raw_input_s, data_size);
-    data_size = 0; // Don't append again.
   }
 
   // adjust out arguments.