]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/header.cpp
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / http / header.cpp
index 3027d17d887eddaba34ff03fc90ade533c4b55cd..a112e91b6246155139743bc063873aae5e2c41bd 100644 (file)
@@ -1,6 +1,6 @@
+#include "header.h"
 #include <stdexcept>
 #include <msp/strings/utils.h>
-#include "header.h"
 #include "message.h"
 
 using namespace std;
@@ -53,12 +53,12 @@ void Header::parse()
 
        char value_sep = (style==VALUE_WITH_ATTRIBUTES ? 0 : ',');
 
-       string::const_iterator i = raw_value.begin();
-       while(i!=raw_value.end())
+       auto i = raw_value.cbegin();
+       while(i!=raw_value.cend())
        {
                Value value;
 
-               string::const_iterator start = i;
+               auto start = i;
                if(style==KEY_VALUE_LIST)
                        value.value = name;
                else