File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ var DgraphClientStub = (function () {
368
368
switch ( _a . label ) {
369
369
case 0 :
370
370
url = this . getURL ( path ) ;
371
+ config . headers = config . headers !== undefined ? config . headers : { } ;
371
372
if ( this . accessToken !== undefined && path !== "login" ) {
372
- config . headers = config . headers !== undefined ? config . headers : { } ;
373
373
config . headers [ ACL_TOKEN_HEADER ] = this . accessToken ;
374
374
}
375
375
return [ 4 , fetch ( url , config ) ] ;
Original file line number Diff line number Diff line change @@ -420,8 +420,8 @@ export class DgraphClientStub {
420
420
421
421
private async callAPI < T > ( path : string , config : Config ) : Promise < T > {
422
422
const url = this . getURL ( path ) ;
423
+ config . headers = config . headers !== undefined ? config . headers : { } ;
423
424
if ( this . accessToken !== undefined && path !== "login" ) {
424
- config . headers = config . headers !== undefined ? config . headers : { } ;
425
425
config . headers [ ACL_TOKEN_HEADER ] = this . accessToken ;
426
426
}
427
427
You can’t perform that action at this time.
0 commit comments