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
1 changed files with 3 additions and 3 deletions

View File

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