From 0fb7076192f60472cd5885767898d79400adfa81 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sun, 16 Dec 2012 13:09:29 +0100 Subject: [PATCH] Use std::map at() is not available in old libs. Use find() --- server/connectionHTTP.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c index f2d8e0e..b7fcfa8 100644 --- a/server/connectionHTTP.c +++ b/server/connectionHTTP.c @@ -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;