summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-07-07 09:15:16 +0400
committerAndrew Dolgov <[email protected]>2014-07-07 09:15:16 +0400
commit1da6e2200616b39017202604750aa1f5b0ac8e00 (patch)
tree9693a1c720a239ff1edcbf7ace9f3b6427e22653
parent2d3ff643609a6767ca0d47cd3a38a3832350be72 (diff)
parent0c019b4436c9ec224b23972a65aaf55aa03d5d57 (diff)
Merge pull request #388 from dzaikos/fix-curl-head-request-method
Fixed geturl() function to ensure HEAD request method is used.
-rw-r--r--include/functions2.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php
index d6a399ffc..3e3367240 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -2220,6 +2220,7 @@
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 Firefox/5.0');
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_HEADER, true);
+ curl_setopt($curl, CURLOPT_NOBODY, true);
curl_setopt($curl, CURLOPT_REFERER, $url);
curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($curl, CURLOPT_AUTOREFERER, true);