diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-14 21:02:25 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-14 21:02:25 +0900 |
| commit | 3ddb68f34077159a1ee4ae87d663971a0f21fb1b (patch) | |
| tree | b7f3f6e87e3d8b06357b9b15d5e6fcd46578627a /src/HttpServerCommand.cc | |
| parent | f0cfbb21c1c0e68aef0de8e2380ac744be832d13 (diff) | |
Deprecated --enable-xml-rpc and --xml-rpc-* option. Introduced
--enable-rpc and --rpc-* option instead.
--enable-xml-rpc and --xml-rpc-* option can be used but warning
message will be shown. The help tag #xml-rpc was replaced with #rpc.
Diffstat (limited to 'src/HttpServerCommand.cc')
| -rw-r--r-- | src/HttpServerCommand.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index cf1ab35e..f0fb7750 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -64,8 +64,8 @@ HttpServerCommand::HttpServerCommand { setStatus(Command::STATUS_ONESHOT_REALTIME); e_->addSocketForReadCheck(socket_, this); - httpServer_->setUsernamePassword(e_->getOption()->get(PREF_XML_RPC_USER), - e_->getOption()->get(PREF_XML_RPC_PASSWD)); + httpServer_->setUsernamePassword(e_->getOption()->get(PREF_RPC_USER), + e_->getOption()->get(PREF_RPC_PASSWD)); #ifdef HAVE_ZLIB httpServer_->enableGZip(); #else // !HAVE_ZLIB @@ -130,7 +130,7 @@ bool HttpServerCommand::execute() return true; } if(static_cast<uint64_t> - (e_->getOption()->getAsInt(PREF_XML_RPC_MAX_REQUEST_SIZE)) < + (e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE)) < httpServer_->getContentLength()) { A2_LOG_INFO(fmt("Request too long. ContentLength=%s." " See --xml-rpc-max-request-size option to loose" |
