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') {
|
if (method === 'post') {
|
||||||
options = {
|
options = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers,
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
body: qs
|
body: qs
|
||||||
};
|
};
|
||||||
url = `${Lbryio.CONNECTION_STRING}${resource}/${action}`;
|
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') {
|
if (method === 'post') {
|
||||||
options = {
|
options = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: headers,
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
body: qs
|
body: qs
|
||||||
};
|
};
|
||||||
url = "".concat(Lbryio.CONNECTION_STRING).concat(resource, "/").concat(action);
|
url = "".concat(Lbryio.CONNECTION_STRING).concat(resource, "/").concat(action);
|
||||||
|
|
|
@ -97,9 +97,7 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
|
||||||
if (method === 'post') {
|
if (method === 'post') {
|
||||||
options = {
|
options = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers,
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
|
||||||
},
|
|
||||||
body: qs,
|
body: qs,
|
||||||
};
|
};
|
||||||
url = `${Lbryio.CONNECTION_STRING}${resource}/${action}`;
|
url = `${Lbryio.CONNECTION_STRING}${resource}/${action}`;
|
||||||
|
|
Loading…
Reference in a new issue