Update app.coffee
added user agent as its required by github api now
This commit is contained in:
parent
fbda3311c5
commit
764c1a0c77
|
@ -14,6 +14,8 @@ Issues =
|
||||||
host: "api.github.com"
|
host: "api.github.com"
|
||||||
method: "GET"
|
method: "GET"
|
||||||
path: path
|
path: path
|
||||||
|
headers:
|
||||||
|
'User-Agent': 'Scrum Burndown (1)'
|
||||||
|
|
||||||
https.request(options, (response) ->
|
https.request(options, (response) ->
|
||||||
if response.statusCode is 200
|
if response.statusCode is 200
|
||||||
|
@ -221,4 +223,4 @@ fs.readFile "config.yml", "utf8", (err, data) ->
|
||||||
|
|
||||||
app.start process.env.PORT, (err) ->
|
app.start process.env.PORT, (err) ->
|
||||||
throw err if err
|
throw err if err
|
||||||
console.log "Listening on port #{app.server.address().port}"
|
console.log "Listening on port #{app.server.address().port}"
|
||||||
|
|
Loading…
Reference in New Issue