From: Mikko Rasa Date: Sat, 1 Dec 2012 10:00:59 +0000 (+0200) Subject: Add the target type to a lexical_cast invocation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=198ae0bf208b505054b5964eb9284ff31e8cfc65;p=libs%2Fnet.git Add the target type to a lexical_cast invocation --- diff --git a/source/http/message.cpp b/source/http/message.cpp index 4539204..5d5dd21 100644 --- a/source/http/message.cpp +++ b/source/http/message.cpp @@ -35,7 +35,7 @@ void Message::add_content(const string &d) content += d; if(headers.count("Content-Type")==0) set_header("Content-Type", "text/plain"); - set_header("Content-Length", lexical_cast(content.size())); + set_header("Content-Length", lexical_cast(content.size())); } void Message::set_user_data(const Variant &d)