Permalink
Browse files

Make the github detection more lax

  • Loading branch information...
1 parent dad8c36 commit 997c85869a45c88cc496e2cfff5b1cd45ff5b282 @creationix committed Feb 4, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 builder.js
View
@@ -16,10 +16,9 @@ Http.createServer(function (req, res) {
body += chunk;
});
req.addListener('complete', function () {
- try {
- body = QueryString.parse(body).query.payload;
+ if (body.length > 0) {
log("Received GitHub POST hook: " + body);
- } catch(e) {
+ } else {
body = false;
log("Manual refresh");
}

0 comments on commit 997c858

Please sign in to comment.