Comparing version 0.0.5 to 0.0.6
@@ -28,2 +28,4 @@ | ||
this.push(this.buf === this.sig) | ||
delete this.buf | ||
delete this.sig | ||
} | ||
@@ -30,0 +32,0 @@ |
{ | ||
"name": "deed", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "verify x-hub-signature", | ||
@@ -34,5 +34,4 @@ "main": "index.js", | ||
"engines": { | ||
"node": "0.10.x", | ||
"node": "0.11.x" | ||
"node": ">=0.10" | ||
} | ||
} |
# deed - verify x-hub-signature | ||
The *deed* [Node.js](http://nodejs.org/) module verifies [X-Hub-Signature](http://pubsubhubbub.googlecode.com/git/pubsubhubbub-core-0.3.html#authednotify) headers which can be used to authorize `HTTP` requests like [GitHub webhooks](https://developer.github.com/v3/repos/hooks/) for example. | ||
The Deed [Node.js](http://nodejs.org/) module verifies [X-Hub-Signature](http://pubsubhubbub.googlecode.com/git/pubsubhubbub-core-0.3.html#authednotify) headers which can be used to authorize `HTTP` requests like [GitHub webhooks](https://developer.github.com/v3/repos/hooks/) for example. | ||
@@ -14,3 +14,2 @@ [![Build Status](https://secure.travis-ci.org/michaelnisi/deed.svg)](http://travis-ci.org/michaelnisi/deed) [![David DM](https://david-dm.org/michaelnisi/deed.svg)](http://david-dm.org/michaelnisi/deed) | ||
; | ||
http.createServer(function (req, res) { | ||
@@ -36,3 +35,3 @@ deed('secret', req, function (er, req) { | ||
The sole function exported by the *deed* module checks if the request body hashed with the secret matches the `X-Hub-Signature` header. | ||
The sole function exported by Deed checks if the request body hashed with the secret matches the `X-Hub-Signature` header. | ||
@@ -39,0 +38,0 @@ - `secret` The key to hash the payload. |
117
5854
47