X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fmessage.cpp;h=4f17017823df937f152f2f2e56780fa420c0ad98;hb=ede42d5bb352841e2e425972e12b8ef31ddf2123;hp=2ae0ff80a641e3f133f051c37fe66569e6a93944;hpb=62ea6954a91568c900ad8155999bea264dfa72f3;p=libs%2Fnet.git diff --git a/source/http/message.cpp b/source/http/message.cpp index 2ae0ff8..4f17017 100644 --- a/source/http/message.cpp +++ b/source/http/message.cpp @@ -9,12 +9,6 @@ using namespace std; namespace Msp { namespace Http { -Message::Message(): - http_version(0x11), - chunk_length(0), - complete(false) -{ } - void Message::set_header(const string &hdr, const string &val) { headers[normalize_header_name(hdr)] = val; @@ -48,7 +42,7 @@ unsigned Message::parse_content(const string &d) if(complete) return 0; - HeaderMap::const_iterator i = headers.find("Content-Length"); + auto i = headers.find("Content-Length"); if(i!=headers.end()) { string::size_type needed = lexical_cast(i->second)-content.size();