From a097c14c31765658ee3206391b34e57868918944 Mon Sep 17 00:00:00 2001 From: Andrey Beletsky Date: Thu, 12 Mar 2020 15:28:47 +0700 Subject: [PATCH] Add method name to the API query string --- src/lbry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lbry.js b/src/lbry.js index ea72713..146149d 100644 --- a/src/lbry.js +++ b/src/lbry.js @@ -191,7 +191,7 @@ export function apiCall(method: string, params: ?{}, resolve: Function, reject: }), }; - return fetch(Lbry.daemonConnectionString, options) + return fetch(Lbry.daemonConnectionString + '?m=' + method, options) .then(checkAndParse) .then(response => { const error = response.error || (response.result && response.result.error);