Skip to content

Commit da72c8c

Browse files
committed
Add userAgent to github requests.
1 parent ee2718a commit da72c8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ function setup_github_passport(consumer_key, consumer_secret) {
9292
passport.use(new GitHubStrategy({
9393
clientID: consumer_key,
9494
clientSecret: consumer_secret,
95-
callbackURL: "http://" + HOSTNAME + "/auth/github/callback"
95+
callbackURL: "http://" + HOSTNAME + "/auth/github/callback",
96+
userAgent: HOSTNAME
9697
},
9798
function(accessToken, refreshToken, profile, done) {
9899
// asynchronous verification, for effect...
@@ -557,4 +558,4 @@ process.on('uncaughtException', function(err) {
557558
debug_helper.kill_debug(false, function() {
558559
//no need to wait for this
559560
});
560-
});
561+
});

0 commit comments

Comments
 (0)