changeset 1100:f21f7783f934

fix RestApiOutput
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Aug 2014 10:11:43 +0200
parents 060e8918d7a4
children e5686a703c63
files Core/HttpServer/MongooseServer.cpp Core/RestApi/RestApiOutput.cpp
diffstat 2 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Thu Aug 07 10:02:22 2014 +0200
+++ b/Core/HttpServer/MongooseServer.cpp	Thu Aug 07 10:11:43 2014 +0200
@@ -711,7 +711,7 @@
           return (void*) "";
         }
       }
-      
+
       if (!found)
       {
         try
--- a/Core/RestApi/RestApiOutput.cpp	Thu Aug 07 10:02:22 2014 +0200
+++ b/Core/RestApi/RestApiOutput.cpp	Thu Aug 07 10:11:43 2014 +0200
@@ -49,10 +49,6 @@
 
   RestApiOutput::~RestApiOutput()
   {
-    if (!alreadySent_)
-    {
-      output_.SendHeader(HttpStatus_400_BadRequest);
-    }
   }
   
   void RestApiOutput::CheckStatus()