diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-25 22:41:03 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-25 22:41:03 +0900 |
| commit | be77d1394e94bf42c644586d2e7dfcaec778504b (patch) | |
| tree | 781189ab0c6352dc9b1607a3502bcc7f2771ea12 /src/AuthConfigFactory.cc | |
| parent | c186e93488d3a4c4f41584bbd3ba47dafb391e9d (diff) | |
Removed Request::PROTO_*
Diffstat (limited to 'src/AuthConfigFactory.cc')
| -rw-r--r-- | src/AuthConfigFactory.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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>& 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()); |
