From 804e5158474d331b2cefe91695b8d26a1a0ca3e6 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 18 Jun 2014 11:25:56 +0200 Subject: [PATCH] stream line code a bit in Reply --- Server/Http/Reply.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Http/Reply.cpp b/Server/Http/Reply.cpp index 1f778cd84..0a3885710 100644 --- a/Server/Http/Reply.cpp +++ b/Server/Http/Reply.cpp @@ -90,7 +90,7 @@ Reply Reply::StockReply(Reply::status_type status) const std::string status_string = reply.ToString(status); reply.content.insert(reply.content.end(), status_string.begin(), status_string.end()); reply.headers.emplace_back("Access-Control-Allow-Origin", "*"); - reply.headers.emplace_back("Content-Length", UintToString(reply.content.size())); + reply.headers.emplace_back("Content-Length", UintToString(static_cast(reply.content.size()))); reply.headers.emplace_back("Content-Type", "text/html"); return reply; }