summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2017-09-26 00:41:27 +0200
committerNathan Gass2017-09-26 00:41:27 +0200
commit4bd3944affdf5464260e076e315a752d0a8e627f (patch)
tree1523076ff4410ea8f240fcba5b2f60e3a7b1d93a
parent7409e20cdc51ef574759450ef92dd7594a1ec1b9 (diff)
downloaditools-4bd3944affdf5464260e076e315a752d0a8e627f.tar.gz
itools-4bd3944affdf5464260e076e315a752d0a8e627f.tar.bz2
itools-4bd3944affdf5464260e076e315a752d0a8e627f.zip
do not wait for body on HEAD request
-rw-r--r--it_url.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index e4617a9..e7c50c5 100644
--- a/it_url.class
+++ b/it_url.class
@@ -216,6 +216,7 @@ static function curl_opts($p=array())
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_CUSTOMREQUEST => $p['method'] ?: null,
+ CURLOPT_NOBODY => $p['method'] == 'HEAD',
CURLOPT_SAFE_UPLOAD => true, # disable special meaning of @value in POST forms (security)
CURLOPT_CAPATH => '/etc/ssl/certs/',