Skip to content

Commit

Permalink
Refresh config upon every POST received
Browse files Browse the repository at this point in the history
  • Loading branch information
arturadib committed Apr 4, 2012
1 parent b415672 commit 71d41c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ app.post('/', function(req, res) {
// Release client
res.send();

// Refresh config from file
config = common.getConfig();

var type = req.header('x-github-event');
if (!type) {
log('Invalid POST request (no x-github-event in header). Details:');
Expand Down

0 comments on commit 71d41c3

Please sign in to comment.