diff options
author | Andrew Dolgov <[email protected]> | 2015-12-25 15:10:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-12-25 15:10:45 +0300 |
commit | 5eed9e2e185f26f5fc94554fc3be976ea11b03d5 (patch) | |
tree | 31cf7eb68d2b6f720467a6fe6d67867664b57a50 /plugins/af_unburn/init.php | |
parent | a536f94c8d1796d34741d0f10b474b5ec67b496a (diff) | |
parent | fb59c879326eb441a69d8e4a73cf6947be158fe6 (diff) |
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
Diffstat (limited to 'plugins/af_unburn/init.php')
-rwxr-xr-x | plugins/af_unburn/init.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index 263997dbf..72f8a2606 100755 --- a/plugins/af_unburn/init.php +++ b/plugins/af_unburn/init.php @@ -30,6 +30,7 @@ class Af_Unburn extends Plugin { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); if (defined('_CURL_HTTP_PROXY')) { |