Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'hotfix/3114' into develop

Forward port #3114
  • Loading branch information...
commit 549bc06c45c56a5f9b027e44d58882c264d7ac61 2 parents 8c0dd52 + acd0ba4
@weierophinney weierophinney authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Http/Client.php
View
4 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 (
Please sign in to comment.
Something went wrong with that request. Please try again.