mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 06:00:53 +03:00
fix: use Authorization header
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user