We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc03db9 commit 2461c35Copy full SHA for 2461c35
1 file changed
github.js
@@ -16,9 +16,9 @@
16
function headers() {
17
var headers = {}
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' };
+ if (options.auth === 'basic' && (!options.username || !options.password)) return { Accept: 'application/vnd.github.raw' };
20
return options.auth == 'oauth'
21
- ? { Authorization: 'token '+ options.token, Accept: 'application/vnd.github.raw' }
+ ? { Authorization: 'token '+ options.token, Accept: 'application/vnd.github.raw' }
22
: { Authorization : 'Basic ' + Base64.encode(options.username + ':' + options.password), Accept: 'application/vnd.github.raw' }
23
}
24
0 commit comments