Skip to content

Commit

Permalink
Merge pull request stripe#351 from stripe/jlomas-stripe-hte-is-not-a-…
Browse files Browse the repository at this point in the history
…word

`hte` is not a word
brandur-stripe authored Jun 19, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents e0a6c12 + 52feba2 commit 778a132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/webhook-signing/express.js
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ const stripe = Stripe(apiKey);

const router = Express.Router();

// Add the raw body of hte request to the `request` object
// Add the raw text body of the request to the `request` object
function addRawBody(req, res, next) {
req.setEncoding('utf8');

@@ -41,7 +41,7 @@ function addRawBody(req, res, next) {
// router.use(addRawBody);

/**
* ...add it directly as middleware to the route.
* ...or add it directly as middleware to the route.
*/
router.post('/webhooks', addRawBody, function(request, response) {
var event;

0 comments on commit 778a132

Please sign in to comment.