From 4bd3944affdf5464260e076e315a752d0a8e627f Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 26 Sep 2017 00:41:27 +0200 Subject: do not wait for body on HEAD request --- it_url.class | 1 + 1 file changed, 1 insertion(+) (limited to 'it_url.class') 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/', -- cgit v1.2.3