Fixed Client to allow also empty passwords in HTTP Authentication. #3114

Closed
wants to merge 1 commit into
from
@@ -631,8 +631,8 @@ public function setAuth($user, $password, $type = self::AUTH_BASIC)
if (!defined('self::AUTH_' . strtoupper($type))) {
throw new Exception\InvalidArgumentException("Invalid or not supported authentication type: '$type'");
}
- if (empty($user) || empty($password)) {
- throw new Exception\InvalidArgumentException("The username and the password cannot be empty");
+ if (empty($user)) {
+ throw new Exception\InvalidArgumentException("The username cannot be empty");
}
$this->auth = array (