Postreceive returns debug info in response

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent 9e2fa91600
commit 352d22ff1b
  1. 3
      BuildServer/app.js
  2. 2
      BuildServer/routes/postreceive.js

@ -38,6 +38,9 @@ if ('development' == app.get('env')) {
app.get('/', routes.index);
app.post('/github/postreceive', routes.postreceive);
app.get('/github/postreceive', function (req, res) {
res.send("Only automated POST requests are allowed for postreceive route");
});
app.get('/manual', routes.manual.get);
app.post('/manual', routes.manual.post);
app.get('/status/:owner/:reponame/:branch/:rev?', routes.status.page);

@ -24,6 +24,6 @@ module.exports = function(req, res){
console.log("Error: " + err);
console.log("Result:");
console.log(result);
res.end();
res.send("Done processing request from GitHub\r\n" + "Error: " + err + "\r\n" + "Result: " + result);
});
};
Loading…
Cancel
Save