summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-12-01 23:37:57 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-12-01 23:37:57 +0900
commit8ac433a8e9ab8bddd96c62db4bbeac3adce2b3ba (patch)
tree9b3e27376e480cd2edf1cfad0aad35e91e552194 /src/HttpServerCommand.cc
parent2cbdd8b8452f0946693b2a283f08f3de4a8f1eb1 (diff)
Fixed compile error without SSL/TLS librelease-1.16.0
Diffstat (limited to 'src/HttpServerCommand.cc')
-rw-r--r--src/HttpServerCommand.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc
index e87b6e9e..c367e2df 100644
--- a/src/HttpServerCommand.cc
+++ b/src/HttpServerCommand.cc
@@ -178,6 +178,7 @@ bool HttpServerCommand::execute()
!httpServer_->getSocketRecvBuffer()->bufferEmpty()) {
timeoutTimer_ = global::wallclock();
+#ifdef ENABLE_SSL
if(httpServer_->getSecure()) {
// tlsAccept() just returns true if handshake has already
// finished.
@@ -187,6 +188,7 @@ bool HttpServerCommand::execute()
return false;
}
}
+#endif // ENABLE_SSL
SharedHandle<HttpHeader> header;
header = httpServer_->receiveRequest();