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 16
16
function headers ( ) {
17
17
var headers = { }
18
18
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' } ;
20
20
return options . auth == 'oauth'
21
- ? { Authorization : 'token ' + options . token , Accept : 'application/vnd.github.raw' }
21
+ ? { Authorization : 'token ' + options . token , Accept : 'application/vnd.github.raw' }
22
22
: { Authorization : 'Basic ' + Base64 . encode ( options . username + ':' + options . password ) , Accept : 'application/vnd.github.raw' }
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments