summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc6
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"