applayerpluginsandutils/httpprotocolplugins/httpclient/chttpresponseparser.cpp
branchRCL_3
changeset 3 5ee1d9ce5878
parent 0 b16258d2340f
child 6 fa2fd8b2d6cc
--- a/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpresponseparser.cpp	Tue Feb 02 01:09:52 2010 +0200
+++ b/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpresponseparser.cpp	Fri Feb 19 23:50:57 2010 +0200
@@ -226,7 +226,8 @@
 	iCancellingResponse = ETrue;
 	RHTTPTransaction trans = iProtTrans->Transaction();
 	RHTTPResponse response = trans.Response();
-
+  if(iBodyParts.Count() > 0)
+  	iBodyParts.Remove(0);	
 	iMessageParser.Flush ();		
 	iMessageParser.Reset();
 	iCancellingResponse = EFalse;	
@@ -484,7 +485,7 @@
                  
                  if( headReq.GetField(hostStr, 0, hostVal) == KErrNotFound )
                      {
-                     // No Host header - do not know which host to connect to.
+                     // No Host header
                      User::Leave(KErrHttpGeneralHeaderMissingHost);
                      }
  
@@ -495,7 +496,7 @@
                  #if defined (_DEBUG) && defined (_LOGGING)
                      __FLOG_0(_T8("Pipelining is disabled for WebLogic Server- \n"));
                  #endif
-                 manager->InsertPipelineFailedHost(hostVal.StrF().DesC());
+                 manager->AppendPipelineFailedHost(hostVal.StrF().DesC());
                  }
 		}
 		
@@ -659,7 +660,8 @@
 
 	if( !ConsumingResponse() )
 		{
-		iResponseObserver.ResponseComplete(aExcessData);
+		if( iBodyParts.Count() == 0 )
+			iResponseObserver.ResponseComplete(aExcessData);
 
 		if ( iCancellingResponse )
 			{