diff --git a/Contractor/EdgeBasedGraphFactory.h b/Contractor/EdgeBasedGraphFactory.h index e751a7169..e290b762a 100644 --- a/Contractor/EdgeBasedGraphFactory.h +++ b/Contractor/EdgeBasedGraphFactory.h @@ -32,7 +32,6 @@ #include #include -#include #include #include #include diff --git a/Server/BasicDatastructures.h b/Server/BasicDatastructures.h index 71e3ac996..ebd5a1e50 100644 --- a/Server/BasicDatastructures.h +++ b/Server/BasicDatastructures.h @@ -21,8 +21,8 @@ or see http://www.gnu.org/licenses/agpl.txt. #ifndef BASIC_DATASTRUCTURES_H #define BASIC_DATASTRUCTURES_H #include +#include #include -#include #include "../Util/StringUtil.h" @@ -143,7 +143,9 @@ Reply Reply::stockReply(Reply::status_type status) { rep.headers[0].name = "Access-Control-Allow-Origin"; rep.headers[0].value = "*"; rep.headers[1].name = "Content-Length"; - rep.headers[1].value = boost::lexical_cast(rep.content.size()); + std::ostringstream s; + s << rep.content.size(); + rep.headers[1].value = s.str(); rep.headers[2].name = "Content-Type"; rep.headers[2].value = "text/html"; return rep; diff --git a/Server/RequestHandler.h b/Server/RequestHandler.h index b973d9b4d..9dd0e2849 100644 --- a/Server/RequestHandler.h +++ b/Server/RequestHandler.h @@ -25,7 +25,6 @@ or see http://www.gnu.org/licenses/agpl.txt. #include // std::tolower #include #include -#include #include #include "APIGrammar.h"