mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-01 13:19:12 +00:00
Remove redundant default/required option CURLOPT_RETURNTRANSFER
This commit is contained in:
+1
-2
@@ -291,12 +291,11 @@ class Curl
|
||||
$this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
||||
$this->setOpt(CURLOPT_USERPWD, $username . ':' . $password);
|
||||
}
|
||||
|
||||
|
||||
public function setDigestAuthentication($username, $password = '')
|
||||
{
|
||||
$this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
|
||||
$this->setOpt(CURLOPT_USERPWD, $username . ':' . $password);
|
||||
$this->setOpt(CURLOPT_RETURNTRANSFER, true);
|
||||
}
|
||||
|
||||
public function setCookie($key, $value)
|
||||
|
||||
Reference in New Issue
Block a user