summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-01-09 10:19:11 +0000
committerChris Wilson <chris+github@qwirx.com>2009-01-09 10:19:11 +0000
commit1c712f9e709f40914412f7368e4945226b45a879 (patch)
tree94e300a5903019ccec95d879d306c592602906b2 /lib
parentdc761547861052700471f92c2184e391fe6aa547 (diff)
Reset to remove old content in HTTPResponse in assignment operator.
Diffstat (limited to 'lib')
-rw-r--r--lib/httpserver/HTTPResponse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/httpserver/HTTPResponse.h b/lib/httpserver/HTTPResponse.h
index f3d16eef..04051958 100644
--- a/lib/httpserver/HTTPResponse.h
+++ b/lib/httpserver/HTTPResponse.h
@@ -48,6 +48,7 @@ public:
HTTPResponse &operator=(const HTTPResponse &rOther)
{
+ Reset();
Write(rOther.GetBuffer(), rOther.GetSize());
mResponseCode = rOther.mResponseCode;
mResponseIsDynamicContent = rOther.mResponseIsDynamicContent;