diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index 444c57b..54efd5e 100644 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -146,7 +146,7 @@ public function hasBasicAuth() */ public function hasDigestAuth() { - return isset($this->password) && isset($this->username) && $this->additional_curl_opts['CURLOPT_HTTPAUTH'] = CURLAUTH_DIGEST; + return isset($this->password) && isset($this->username) && $this->additional_curl_opts['CURLOPT_HTTPAUTH'] == CURLAUTH_DIGEST; } /**