summaryrefslogtreecommitdiff
path: root/plugins/af_unburn
diff options
context:
space:
mode:
authorEduardo M KALINOWSKI <[email protected]>2015-12-25 09:59:51 -0200
committerEduardo M KALINOWSKI <[email protected]>2015-12-25 09:59:51 -0200
commitfb59c879326eb441a69d8e4a73cf6947be158fe6 (patch)
tree31cf7eb68d2b6f720467a6fe6d67867664b57a50 /plugins/af_unburn
parenta536f94c8d1796d34741d0f10b474b5ec67b496a (diff)
Fetch only the headers in order to get the real article URL.
Diffstat (limited to 'plugins/af_unburn')
-rwxr-xr-xplugins/af_unburn/init.php1
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')) {