add authorization header to post
This commit is contained in:
parent
f133a7ed62
commit
6714d12560
3 changed files with 3 additions and 9 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -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
4
dist/bundle.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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}`;
|
||||
|
|
Loading…
Reference in a new issue