summaryrefslogtreecommitdiff
path: root/src/trg-client.c
diff options
context:
space:
mode:
authorGravatar Alan F <ajf@eth0.org.uk>2014-03-11 21:40:00 +0000
committerGravatar Alan F <ajf@eth0.org.uk>2014-03-11 21:40:00 +0000
commit0ddde97414b63ab2830d0352ef1cd86cc9958cad (patch)
treeb48a125cc0b11735a0bc5e7c5b6c37154f2ebea4 /src/trg-client.c
parente22015c6d3e8860b1994a22919bdb1f6066fcbe9 (diff)
support uTorrent style cookies on the end of the RSS feed URL
Diffstat (limited to 'src/trg-client.c')
-rw-r--r--src/trg-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trg-client.c b/src/trg-client.c
index c285c7b..48e3093 100644
--- a/src/trg-client.c
+++ b/src/trg-client.c
@@ -784,7 +784,9 @@ dispatch_async_str(TrgClient * tc, gchar * body,
gboolean async_http_request(TrgClient *tc, gchar *url, const gchar *cookie, GSourceFunc callback, gpointer data) {
trg_request *trg_req = g_new0(trg_request, 1);
trg_req->url = g_strdup(url);
- trg_req->cookie = g_strdup(cookie);
+
+ if (cookie)
+ trg_req->cookie = g_strdup(cookie);
return dispatch_async_common(tc, trg_req, callback, data);
}