diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index 1de8ecc..c567d12 100644 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -771,6 +771,9 @@ public function _curlPrep() $ch = curl_init($this->uri); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->method); + if ($this->method==HTTP::HEAD) { + curl_setopt($ch, CURLOPT_NOBODY, true); + } if ($this->hasBasicAuth()) { curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);