From 907636d97b1893e9df4ef28489c92d32118c6fa2 Mon Sep 17 00:00:00 2001 From: Alan F Date: Mon, 24 Feb 2014 18:48:23 +0000 Subject: plug the RSS feeds into the preferences dialog and put ifdefs so it should compile without rss-glib --- src/trg-client.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/trg-client.c') diff --git a/src/trg-client.c b/src/trg-client.c index 8ab2afd..25a78dd 100644 --- a/src/trg-client.c +++ b/src/trg-client.c @@ -563,12 +563,18 @@ static CURL* get_curl(TrgClient *tc, guint http_class) priv->http_class = http_class; } + if (http_class == HTTP_CLASS_TRANSMISSION) + curl_easy_setopt(curl, CURLOPT_URL, trg_client_get_url(tc)); + curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long) trg_prefs_get_int(prefs, TRG_PREFS_KEY_TIMEOUT, TRG_PREFS_CONNECTION)); g_mutex_unlock(priv->configMutex); + /* Headers are set on each use, then freed, so make sure invalid headers aren't still around. */ + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, NULL); + return curl; } -- cgit v1.2.3