Permalink
Browse files

Merge branch 'hotfix/3114' into develop

Forward port #3114
  • Loading branch information...
weierophinney committed Dec 11, 2012
2 parents 8c0dd52 + acd0ba4 commit 549bc06c45c56a5f9b027e44d58882c264d7ac61
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Http/Client.php
@@ -659,8 +659,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 549bc06

Please sign in to comment.