mirror of
https://github.com/timvisee/send.git
synced 2025-10-03 09:49:14 +02:00
fix: use Authorization header
This commit is contained in:
parent
56a0e830bd
commit
c0cf7bbda2
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function post(obj, bearerToken) {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
};
|
};
|
||||||
if (bearerToken) {
|
if (bearerToken) {
|
||||||
h['Authentication'] = `Bearer ${bearerToken}`;
|
h['Authorization'] = `Bearer ${bearerToken}`;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue