diff Core/HttpServer/StringHttpOutput.h @ 2046:b534834a300e

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 24 Jun 2016 20:49:13 +0200
parents b1291df2f780
children a3a65de1840f
line wrap: on
line diff
--- a/Core/HttpServer/StringHttpOutput.h	Fri Jun 24 11:42:23 2016 +0200
+++ b/Core/HttpServer/StringHttpOutput.h	Fri Jun 24 20:49:13 2016 +0200
@@ -41,16 +41,18 @@
   class StringHttpOutput : public IHttpOutputStream
   {
   private:
+    bool          found_;
     ChunkedBuffer buffer_;
 
   public:
+    StringHttpOutput() : found_(false)
+    {
+    }
+
     virtual void OnHttpStatusReceived(HttpStatus status);
 
     virtual void Send(bool isHeader, const void* buffer, size_t length);
 
-    void GetOutput(std::string& output)
-    {
-      buffer_.Flatten(output);
-    }
+    void GetOutput(std::string& output);
   };
 }