Use std::map at() is not available in old libs. Use find()

This commit is contained in:
Frank Schmirler 2012-12-16 13:09:29 +01:00
parent f5da0ea1fc
commit 0fb7076192

View File

@ -340,9 +340,9 @@ cChannelList* cConnectionHTTP::ChannelListFromString(const std::string& Path, co
if (iterator) {
if (Filebase.empty() || Fileext.compare(".htm") == 0 || Fileext.compare(".html") == 0) {
std::string self = Filebase + Fileext;
const std::string& query = Headers().at("QUERY_STRING");
if (!query.empty())
self += '?' + query;
tStrStrMap::const_iterator it = Headers().find("QUERY_STRING");
if (it != Headers().end() && !it->second.empty())
self += '?' + it->second;
return new cHtmlChannelList(iterator, m_StreamType, self.c_str(), groupTarget.c_str());
} else if (Fileext.compare(".m3u") == 0) {
std::string base;