Skip to content

Commit

Permalink
fix(node): fix for node 5 Buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
geraintwhite committed Nov 30, 2017
1 parent 0c8fec8 commit 1094e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.js
Expand Up @@ -108,7 +108,7 @@ var Travis = (function () {
return false;
}

var signature = Buffer.from(this.headers['signature'], 'base64');
var signature = new Buffer(this.headers['signature'], 'base64');
var verified = crypto.createVerify('sha1')
.update(this.body)
.verify(this.config.travis_public_key, signature);
Expand Down

0 comments on commit 1094e6d

Please sign in to comment.