diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-01-09 10:19:11 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-01-09 10:19:11 +0000 |
commit | 1c712f9e709f40914412f7368e4945226b45a879 (patch) | |
tree | 94e300a5903019ccec95d879d306c592602906b2 /lib | |
parent | dc761547861052700471f92c2184e391fe6aa547 (diff) |
Reset to remove old content in HTTPResponse in assignment operator.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/httpserver/HTTPResponse.h | 1 |
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; |