diff --git a/rpc.js b/rpc.js index 83f2010a2..5b5d058b9 100644 --- a/rpc.js +++ b/rpc.js @@ -1088,8 +1088,8 @@ RPC.create = function (config /*:typeof(ConfigType)*/, cb /*:(?Error, ?Function) return void handleMessage(false); } - // restrict upload capability unless explicitly disabled - if (config.restrictUploads === false) { + // allow unrestricted uploads unless restrictUploads is true + if (config.restrictUploads !== true) { return void handleMessage(true); }