Update app.coffee

added user agent as its required by github api now
This commit is contained in:
Doug Sims 2013-05-03 13:37:56 -05:00
parent fbda3311c5
commit 764c1a0c77
1 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ Issues =
host: "api.github.com"
method: "GET"
path: path
headers:
'User-Agent': 'Scrum Burndown (1)'
https.request(options, (response) ->
if response.statusCode is 200
@ -221,4 +223,4 @@ fs.readFile "config.yml", "utf8", (err, data) ->
app.start process.env.PORT, (err) ->
throw err if err
console.log "Listening on port #{app.server.address().port}"
console.log "Listening on port #{app.server.address().port}"