Permalink
Browse files

Merge branch 'hotfix/3114'

Close #3114
  • Loading branch information...
2 parents 8baf702 + ab0e075 commit 9597c471f6c855ffec05852f87891509dbc1014a @weierophinney weierophinney committed Dec 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Http/Client.php
@@ -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 (

0 comments on commit 9597c47

Please sign in to comment.