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/HttpRequestCommand.cc | |
| parent | c186e93488d3a4c4f41584bbd3ba47dafb391e9d (diff) | |
Removed Request::PROTO_*
Diffstat (limited to 'src/HttpRequestCommand.cc')
| -rw-r--r-- | src/HttpRequestCommand.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index 11f1fdb8..9eb9daba 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -122,7 +122,7 @@ createHttpRequest(const SharedHandle<Request>& req, bool HttpRequestCommand::executeInternal() { //socket->setBlockingMode(); - if(getRequest()->getProtocol() == Request::PROTO_HTTPS) { + if(getRequest()->getProtocol() == "https") { getSocket()->prepareSecureConnection(); if(!getSocket()->initiateSecureConnection(getRequest()->getHost())) { setReadCheckSocketIf(getSocket(), getSocket()->wantRead()); @@ -150,8 +150,8 @@ bool HttpRequestCommand::executeInternal() { getDownloadEngine()->getAuthConfigFactory(), proxyRequest_)); if(getOption()->getAsBool(PREF_CONDITIONAL_GET) && - (getRequest()->getProtocol() == Request::PROTO_HTTP || - getRequest()->getProtocol() == Request::PROTO_HTTPS)) { + (getRequest()->getProtocol() == "http" || + getRequest()->getProtocol() == "https")) { if(getFileEntry()->getPath().empty() && getRequest()->getFile().empty()) { A2_LOG_DEBUG("Conditional-Get is disabled because file name" |
