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/AbstractCommand.cc | |
| parent | c186e93488d3a4c4f41584bbd3ba47dafb391e9d (diff) | |
Removed Request::PROTO_*
Diffstat (limited to 'src/AbstractCommand.cc')
| -rw-r--r-- | src/AbstractCommand.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index 6b478bfc..2b31538a 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -590,17 +590,17 @@ std::string getProxyOptionFor std::string getProxyUri (const std::string& protocol, const Option* option) { - if(protocol == Request::PROTO_HTTP) { + if(protocol == "http") { return getProxyOptionFor(PREF_HTTP_PROXY, PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD, option); - } else if(protocol == Request::PROTO_HTTPS) { + } else if(protocol == "https") { return getProxyOptionFor(PREF_HTTPS_PROXY, PREF_HTTPS_PROXY_USER, PREF_HTTPS_PROXY_PASSWD, option); - } else if(protocol == Request::PROTO_FTP) { + } else if(protocol == "ftp") { return getProxyOptionFor(PREF_FTP_PROXY, PREF_FTP_PROXY_USER, PREF_FTP_PROXY_PASSWD, @@ -865,7 +865,7 @@ const std::string& AbstractCommand::resolveProxyMethod (const std::string& protocol) const { if(getOption()->get(PREF_PROXY_METHOD) == V_TUNNEL || - Request::PROTO_HTTPS == protocol) { + protocol == "https") { return V_TUNNEL; } else { return V_GET; |
