Merge branch 'af_unburn_fetch_only_headers' into 'master'

af_unburn: Fetch only the headers in order to get the real article URL.

As discussed in the forum https://tt-rss.org/forum/viewtopic.php?f=8&t=3631 , this change makes af_unburn download only the headers in order to find the real URL, saving bandwidth.

See merge request !21
This commit is contained in:
Andrew Dolgov 2015-12-25 15:10:45 +03:00
commit 5eed9e2e18
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class Af_Unburn extends Plugin {
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
if (defined('_CURL_HTTP_PROXY')) { if (defined('_CURL_HTTP_PROXY')) {