[Box Backup-commit] COMMIT r2445 - box/trunk/lib/httpserver

boxbackup-dev@boxbackup.org boxbackup-dev@boxbackup.org
Fri, 9 Jan 2009 10:19:12 +0000 (GMT)


Author: chris
Date: 2009-01-09 10:19:11 +0000 (Fri, 09 Jan 2009)
New Revision: 2445

Modified:
   box/trunk/lib/httpserver/HTTPResponse.h
Log:
Reset to remove old content in HTTPResponse in assignment operator.


Modified: box/trunk/lib/httpserver/HTTPResponse.h
===================================================================
--- box/trunk/lib/httpserver/HTTPResponse.h	2009-01-07 17:31:04 UTC (rev 2444)
+++ box/trunk/lib/httpserver/HTTPResponse.h	2009-01-09 10:19:11 UTC (rev 2445)
@@ -48,6 +48,7 @@
 		
 	HTTPResponse &operator=(const HTTPResponse &rOther)
 	{
+		Reset();
 		Write(rOther.GetBuffer(), rOther.GetSize());
 		mResponseCode = rOther.mResponseCode;
 		mResponseIsDynamicContent = rOther.mResponseIsDynamicContent;