@@ -22,7 +22,7 @@ function getVersion() {
22
22
return new Promise ( ( resolve , reject ) => {
23
23
let status = statusTools . getStatus ( ) ;
24
24
let option = {
25
- headers : { "Authorization " : `Bearer ${ token } ` } ,
25
+ headers : { "authorization " : `Bearer ${ token } ` } ,
26
26
responseType : "json" ,
27
27
} ;
28
28
@@ -48,7 +48,7 @@ function getAddonList() {
48
48
return new Promise ( ( resolve , reject ) => {
49
49
let status = statusTools . getStatus ( ) ;
50
50
let option = {
51
- headers : { "Authorization " : `Bearer ${ token } ` } ,
51
+ headers : { "authorization " : `Bearer ${ token } ` } ,
52
52
responseType : "json" ,
53
53
} ;
54
54
@@ -141,7 +141,7 @@ function getSnapshots() {
141
141
return new Promise ( ( resolve , reject ) => {
142
142
let status = statusTools . getStatus ( ) ;
143
143
let option = {
144
- headers : { "Authorization " : `Bearer ${ token } ` } ,
144
+ headers : { "authorization " : `Bearer ${ token } ` } ,
145
145
responseType : "json" ,
146
146
} ;
147
147
@@ -215,7 +215,7 @@ function dellSnap(id) {
215
215
checkSnap ( id )
216
216
. then ( ( ) => {
217
217
let option = {
218
- headers : { "Authorization " : `Bearer ${ token } ` } ,
218
+ headers : { "authorization " : `Bearer ${ token } ` } ,
219
219
responseType : "json" ,
220
220
} ;
221
221
@@ -235,7 +235,7 @@ function dellSnap(id) {
235
235
function checkSnap ( id ) {
236
236
return new Promise ( ( resolve , reject ) => {
237
237
let option = {
238
- headers : { "Authorization " : `Bearer ${ token } ` } ,
238
+ headers : { "authorization " : `Bearer ${ token } ` } ,
239
239
responseType : "json" ,
240
240
} ;
241
241
@@ -258,7 +258,7 @@ function createNewBackup(name) {
258
258
getAddonToBackup ( ) . then ( ( addons ) => {
259
259
let folders = getFolderToBackup ( ) ;
260
260
let option = {
261
- headers : { "Authorization " : `Bearer ${ token } ` } ,
261
+ headers : { "authorization " : `Bearer ${ token } ` } ,
262
262
responseType : "json" ,
263
263
timeout : {
264
264
response : create_snap_timeout
@@ -332,7 +332,7 @@ function uploadSnapshot(path) {
332
332
333
333
let options = {
334
334
body : form ,
335
- headers : { "Authorization " : `Bearer ${ token } ` } ,
335
+ headers : { "authorization " : `Bearer ${ token } ` } ,
336
336
} ;
337
337
338
338
got . stream
@@ -386,7 +386,7 @@ function stopAddons() {
386
386
statusTools . setStatus ( status ) ;
387
387
let promises = [ ] ;
388
388
let option = {
389
- headers : { "Authorization " : `Bearer ${ token } ` } ,
389
+ headers : { "authorization " : `Bearer ${ token } ` } ,
390
390
responseType : "json" ,
391
391
} ;
392
392
let addons_slug = settingsTools . getSettings ( ) . auto_stop_addon
@@ -426,7 +426,7 @@ function startAddons() {
426
426
statusTools . setStatus ( status ) ;
427
427
let promises = [ ] ;
428
428
let option = {
429
- headers : { "Authorization " : `Bearer ${ token } ` } ,
429
+ headers : { "authorization " : `Bearer ${ token } ` } ,
430
430
responseType : "json" ,
431
431
} ;
432
432
let addons_slug = settingsTools . getSettings ( ) . auto_stop_addon
@@ -473,7 +473,7 @@ function publish_state(state) {
473
473
474
474
475
475
// let option = {
476
- // headers: { "Authorization ": `Bearer ${token}` },
476
+ // headers: { "authorization ": `Bearer ${token}` },
477
477
// responseType: "json",
478
478
// json: data_error_sensor
479
479
// };
0 commit comments