RSSyl: Allow use of .netrc by libcurl. Bug/enhancement #3309, by Vincent Pelletier
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 24 Oct 2014 22:57:43 +0000 (00:57 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 24 Oct 2014 22:57:43 +0000 (00:57 +0200)
src/plugins/rssyl/libfeed/feed.c

index 7719278..cc8c49f 100644 (file)
@@ -250,6 +250,7 @@ guint feed_update(Feed *feed, time_t last_update)
        curl_easy_setopt(eh, CURLOPT_NOSIGNAL, 1);
        curl_easy_setopt(eh, CURLOPT_ENCODING, "");
        curl_easy_setopt(eh, CURLOPT_USERAGENT, "libfeed 0.1");
+       curl_easy_setopt(eh, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
 
        /* Use HTTP's If-Modified-Since feature, if application provided
         * the timestamp of last update. */