From 70a80b1455e11e5572eac4bd4b7ca647c45bbf81 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Mon, 21 Jul 2014 08:11:14 +0200 Subject: Remove request pre-authorization again --- src/HttpServerBodyCommand.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/HttpServerBodyCommand.cc') diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc index 33ad1abe..8f5cac16 100644 --- a/src/HttpServerBodyCommand.cc +++ b/src/HttpServerBodyCommand.cc @@ -253,7 +253,6 @@ bool HttpServerBodyCommand::execute() case RPC_TYPE_JSONP: { std::string callback; std::unique_ptr json; - auto preauthorized = rpc::RpcRequest::MUST_AUTHORIZE; ssize_t error = 0; if(httpServer_->getRequestType() == RPC_TYPE_JSONP) { json::JsonGetParam param = json::decodeGetParams(query); @@ -284,7 +283,7 @@ bool HttpServerBodyCommand::execute() } Dict* jsondict = downcast(json); if(jsondict) { - auto res = rpc::processJsonRpcRequest(jsondict, e_, preauthorized); + auto res = rpc::processJsonRpcRequest(jsondict, e_); sendJsonRpcResponse(res, callback); } else { List* jsonlist = downcast(json); @@ -296,10 +295,7 @@ bool HttpServerBodyCommand::execute() Dict* jsondict = downcast(*i); if (jsondict) { auto resp = - rpc::processJsonRpcRequest(jsondict, e_, preauthorized); - if (resp.code == 0) { - preauthorized = rpc::RpcRequest::PREAUTHORIZED; - } + rpc::processJsonRpcRequest(jsondict, e_); results.push_back(std::move(resp)); } } -- cgit