summaryrefslogtreecommitdiff
path: root/lib/httpserver
diff options
context:
space:
mode:
Diffstat (limited to 'lib/httpserver')
-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;