Explorar el Código

Fix RPC server default params.

Xie Han hace 2 meses
padre
commit
fd44a0a226
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      src/rpc_options.h

+ 4 - 3
src/rpc_options.h

@@ -51,9 +51,10 @@ struct RPCClientParams
 
 struct RPCServerParams : public WFServerParams
 {
-	RPCServerParams() :
-		WFServerParams(SERVER_PARAMS_DEFAULT)
-	{}
+	RPCServerParams() : WFServerParams(SERVER_PARAMS_DEFAULT)
+	{
+		this->request_size_limit = RPC_BODY_SIZE_LIMIT;
+	}
 };
 
 static constexpr struct RPCTaskParams RPC_TASK_PARAMS_DEFAULT =