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 7719278e89b05134c9a4cda66db472f3e81ab305..cc8c49f86af0b652202df1c0d2dc92164d178ae3 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_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. */
 
        /* Use HTTP's If-Modified-Since feature, if application provided
         * the timestamp of last update. */