diff options
author | Nathan Gass | 2017-09-26 00:41:27 +0200 |
---|---|---|
committer | Nathan Gass | 2017-09-26 00:41:27 +0200 |
commit | 4bd3944affdf5464260e076e315a752d0a8e627f (patch) | |
tree | 1523076ff4410ea8f240fcba5b2f60e3a7b1d93a | |
parent | 7409e20cdc51ef574759450ef92dd7594a1ec1b9 (diff) | |
download | itools-4bd3944affdf5464260e076e315a752d0a8e627f.tar.gz itools-4bd3944affdf5464260e076e315a752d0a8e627f.tar.bz2 itools-4bd3944affdf5464260e076e315a752d0a8e627f.zip |
do not wait for body on HEAD request
-rw-r--r-- | it_url.class | 1 |
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/', |