ref: refs/heads/SuSE-Code-11-Branch
commit 27a1e48f1a5e4b8f54ecf56a57102d05d024495a
Author: Ján Kupec
Date: Tue Feb 17 12:53:26 2009 +0100
Fixed CurlAuthData::valid()
Curl (or FTP itself?) does not provide available authentication types hint.
And HTTP can live without an explicit auth type set. Thus, the fix is
to consider CurlAuthData with no authentication type set as valid.
---
zypp/media/MediaUserAuth.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/zypp/media/MediaUserAuth.cc b/zypp/media/MediaUserAuth.cc
index 97ca0c0..20f43a1 100644
--- a/zypp/media/MediaUserAuth.cc
+++ b/zypp/media/MediaUserAuth.cc
@@ -66,7 +66,7 @@ std::ostream & AuthData::dumpAsIniOn( std::ostream & str ) const
bool CurlAuthData::valid() const
{
- return username().size() && password().size() && _auth_type != CURLAUTH_NONE;
+ return username().size() && password().size();
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org