changeset 345:795ce0fa8e8a

fix
author jodogne
date Wed, 23 Jan 2013 10:21:59 +0100
parents cd6749e53a03
children 107da6a8c630
files Core/HttpServer/MongooseServer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Mon Jan 21 13:23:26 2013 +0100
+++ b/Core/HttpServer/MongooseServer.cpp	Wed Jan 23 10:21:59 2013 +0100
@@ -377,7 +377,7 @@
         {
           Range part(&last->back(), &it->front());
           Range content = boost::find_first(part, "\r\n\r\n");
-          if (content != Range())
+          if (/*content != Range()*/!content.empty())
           {
             Range c(&content.back() + 1, &it->front() - 2);
             size_t chunkSize = c.size();