diff Core/HttpServer/MongooseServer.cpp @ 10:27e2bbc11200

Better signal handling
author Administrator@jodogne-w01
date Fri, 20 Jul 2012 11:45:05 +0200
parents 3a584803783e
children 62bd05fe4b7c
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Fri Jul 20 11:00:49 2012 +0200
+++ b/Core/HttpServer/MongooseServer.cpp	Fri Jul 20 11:45:05 2012 +0200
@@ -339,7 +339,7 @@
     }
 
     typedef boost::find_iterator<std::string::iterator> FindIterator;
-    typedef boost::iterator_range<std::string::iterator> Range;
+    typedef boost::iterator_range<char*> Range;
 
     //chunkStore.Print();
 
@@ -353,7 +353,7 @@
       {
         if (last != FindIterator())
         {
-/*          Range part(&last->back(), &it->front());
+          Range part(&last->back(), &it->front());
           Range content = boost::find_first(part, "\r\n\r\n");
           if (content != Range())
           {
@@ -379,7 +379,7 @@
                 return chunkStore.Store(completedFile, chunkData, chunkSize, fileName->second, fileSize);
               }
             }
-          }*/
+          }
         }
 
         last = it;