20 lines
622 B
Diff
20 lines
622 B
Diff
--- libbtcore/tracker/httptracker.cpp
|
|
+++ libbtcore/tracker/httptracker.cpp
|
|
@@ -456,6 +456,7 @@ namespace bt
|
|
md["cookies"] = "none";
|
|
// md["accept"] = "text/plain";
|
|
md["accept"] = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2";
|
|
+ md["UseProxy"] = QString();
|
|
if (proxy_on)
|
|
{
|
|
QString p = QString("%1:%2").arg(proxy).arg(proxy_port);
|
|
@@ -463,8 +464,6 @@ namespace bt
|
|
KUrl url = KUrl(p);
|
|
if (url.isValid() && proxy.trimmed().length() > 0)
|
|
md["UseProxy"] = p;
|
|
- else
|
|
- md["UseProxy"] = QString();
|
|
|
|
Out(SYS_TRK|LOG_DEBUG) << "Using proxy : " << md["UseProxy"] << endl;
|
|
}
|