]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/message.cpp
Use the auto type to shorten long declarations
[libs/net.git] / source / http / message.cpp
index 2ae0ff80a641e3f133f051c37fe66569e6a93944..99d149725c80db88f5c534547369da8ddac90401 100644 (file)
@@ -48,7 +48,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<string::size_type>(i->second)-content.size();