From 12988e5282ef52a2806cbaca9f4074698f35e399 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 7 Dec 2011 22:57:34 +0900 Subject: Replaced uint64_t with off_t or int64_t. Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t. --- src/HttpServerCommand.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/HttpServerCommand.cc') diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index a2089645..d5653c92 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -133,8 +133,7 @@ bool HttpServerCommand::execute() e_->setNoWait(true); return true; } - if(static_cast - (e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE)) < + if(e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE) < httpServer_->getContentLength()) { A2_LOG_INFO (fmt("Request too long. ContentLength=%lld." -- cgit