support for receiving multi announce messages for local peer discovery

This commit is contained in:
Arvid Norberg
2011-02-16 07:41:44 +00:00
parent cb6f38f056
commit 3c05e81529
6 changed files with 43 additions and 33 deletions

View File

@@ -392,7 +392,7 @@ restart_response:
// add them to the headers in the parser
for (std::map<std::string, std::string>::const_iterator i = tail_headers.begin();
i != tail_headers.end(); ++i)
m_header[i->first] = i->second;
m_header.insert(std::make_pair(i->first, i->second));
return true;
}