diff options
author | Alan F <ajf@eth0.org.uk> | 2014-02-24 18:48:23 +0000 |
---|---|---|
committer | Alan F <ajf@eth0.org.uk> | 2014-02-24 18:48:23 +0000 |
commit | 907636d97b1893e9df4ef28489c92d32118c6fa2 (patch) | |
tree | 3c621a000536cc2124ff4d20b8cdb9e084b86ab8 /src/trg-client.c | |
parent | 1d6f77d4c4fafd0a9cafddd2797249557e601dba (diff) |
plug the RSS feeds into the preferences dialog and put ifdefs so it should compile without rss-glib
Diffstat (limited to 'src/trg-client.c')
-rw-r--r-- | src/trg-client.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |