summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpServerCommand.cc')
-rw-r--r--src/HttpServerCommand.cc3
1 files changed, 1 insertions, 2 deletions
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<uint64_t>
- (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."