applayerpluginsandutils/httpprotocolplugins/httpclient/chttpresponseparser.cpp
branchRCL_3
changeset 6 fa2fd8b2d6cc
parent 3 5ee1d9ce5878
child 7 2611c08ee28e
equal deleted inserted replaced
5:337070b4fa18 6:fa2fd8b2d6cc
   224 	__FLOG_1(_T8("-> Trans %d : response cancelled"), iProtTrans->Transaction().Id());
   224 	__FLOG_1(_T8("-> Trans %d : response cancelled"), iProtTrans->Transaction().Id());
   225 
   225 
   226 	iCancellingResponse = ETrue;
   226 	iCancellingResponse = ETrue;
   227 	RHTTPTransaction trans = iProtTrans->Transaction();
   227 	RHTTPTransaction trans = iProtTrans->Transaction();
   228 	RHTTPResponse response = trans.Response();
   228 	RHTTPResponse response = trans.Response();
   229   if(iBodyParts.Count() > 0)
       
   230   	iBodyParts.Remove(0);	
       
   231 	iMessageParser.Flush ();		
   229 	iMessageParser.Flush ();		
   232 	iMessageParser.Reset();
   230 	iMessageParser.Reset();
   233 	iCancellingResponse = EFalse;	
   231 	iCancellingResponse = EFalse;	
   234 	}
   232 	}
   235 
   233 
   658 
   656 
   659 	iFlags |= EMessageComplete;
   657 	iFlags |= EMessageComplete;
   660 
   658 
   661 	if( !ConsumingResponse() )
   659 	if( !ConsumingResponse() )
   662 		{
   660 		{
   663 		if( iBodyParts.Count() == 0 )
   661 		iResponseObserver.ResponseComplete(aExcessData);
   664 			iResponseObserver.ResponseComplete(aExcessData);
       
   665 
       
   666 		if ( iCancellingResponse )
   662 		if ( iCancellingResponse )
   667 			{
   663 			{
   668 			return;
   664 			return;
   669 			}
   665 			}
   670 		if( GotTrailers() )
   666 		if( GotTrailers() )