From be77d1394e94bf42c644586d2e7dfcaec778504b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 25 Sep 2012 22:41:03 +0900 Subject: Removed Request::PROTO_* --- src/AuthConfigFactory.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/AuthConfigFactory.cc') diff --git a/src/AuthConfigFactory.cc b/src/AuthConfigFactory.cc index effd1ff4..bd858e05 100644 --- a/src/AuthConfigFactory.cc +++ b/src/AuthConfigFactory.cc @@ -60,8 +60,7 @@ AuthConfigHandle AuthConfigFactory::createAuthConfig (const SharedHandle& request, const Option* op) { - if(request->getProtocol() == Request::PROTO_HTTP || - request->getProtocol() == Request::PROTO_HTTPS) { + if(request->getProtocol() == "http" || request->getProtocol() == "https") { if(op->getAsBool(PREF_HTTP_AUTH_CHALLENGE)) { if(!request->getUsername().empty()) { @@ -89,7 +88,7 @@ AuthConfigFactory::createAuthConfig createHttpAuthResolver(op)->resolveAuthConfig(request->getHost()); } } - } else if(request->getProtocol() == Request::PROTO_FTP) { + } else if(request->getProtocol() == "ftp") { if(!request->getUsername().empty()) { if(request->hasPassword()) { return createAuthConfig(request->getUsername(), request->getPassword()); -- cgit