add authorization header to post

This commit is contained in:
zeppi 2021-09-27 00:40:04 -04:00
parent f133a7ed62
commit 6714d12560
3 changed files with 3 additions and 9 deletions

4
dist/bundle.es.js vendored
View file

@ -306,9 +306,7 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
if (method === 'post') {
options = {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
headers,
body: qs
};
url = `${Lbryio.CONNECTION_STRING}${resource}/${action}`;

4
dist/bundle.js vendored
View file

@ -613,9 +613,7 @@ Lbryio.call = function (resource, action) {
if (method === 'post') {
options = {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
headers: headers,
body: qs
};
url = "".concat(Lbryio.CONNECTION_STRING).concat(resource, "/").concat(action);

View file

@ -97,9 +97,7 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
if (method === 'post') {
options = {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
headers,
body: qs,
};
url = `${Lbryio.CONNECTION_STRING}${resource}/${action}`;