ref: refs/heads/master
commit a08b68989c07165ee78049812893479aec19296e
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