File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1616 function headers ( ) {
1717 var headers = { }
1818 if ( options . auth === 'oauth' && ! options . token ) return { Accept : 'application/vnd.github.raw' } ;
19- if ( options . auth === 'basic' && ( ! options . username || ! options . password ) ) return { Accept : 'application/vnd.github.raw' } ;
19+ if ( options . auth === 'basic' && ( ! options . username || ! options . password ) ) return { Accept : 'application/vnd.github.raw' } ;
2020 return options . auth == 'oauth'
21- ? { Authorization : 'token ' + options . token , Accept : 'application/vnd.github.raw' }
21+ ? { Authorization : 'token ' + options . token , Accept : 'application/vnd.github.raw' }
2222 : { Authorization : 'Basic ' + Base64 . encode ( options . username + ':' + options . password ) , Accept : 'application/vnd.github.raw' }
2323 }
2424
You can’t perform that action at this time.
0 commit comments