Permalink
Browse files

fix nood coding mistakes.

-"Equals" matches the whole string.
-double quotes are for strings.
-forgotten "else if" parenthesis (curly brackets).
  • Loading branch information...
1 parent 661b3aa commit 2965d08b5f68d217d3906d26a4ffa098ff31ac3f queeup committed Dec 29, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/filesystem/CurlFile.cpp
View
4 xbmc/filesystem/CurlFile.cpp
@@ -717,11 +717,12 @@ void CCurlFile::ParseAndCorrectUrl(CURL &url2)
else if (name.Equals("Encoding"))
SetContentEncoding(value);
else if (name.Equals("Proxy") && !g_guiSettings.GetBool("network.usehttpproxy"))
+ {
if (name.Equals("ProxyUserPass"))
{
SetProxyUserPass(value);
}
- if (value.Equals('http://'))
+ if (value.Left(7).Equals("http://"))
{
m_proxy = value;
}
@@ -731,6 +732,7 @@ void CCurlFile::ParseAndCorrectUrl(CURL &url2)
}
SetProxy(m_proxy);
CLog::Log(LOGDEBUG, "Using url option proxy %s", m_proxy.c_str());
+ }
else if (name.Equals("noshout") && value.Equals("true"))
m_skipshout = true;
else

0 comments on commit 2965d08

Please sign in to comment.