From db1cd4d490711f9bb770c611202f40d512c75db2 Mon Sep 17 00:00:00 2001 From: Carter <45381083+Fyk0@users.noreply.github.com> Date: Wed, 12 Jun 2019 21:17:25 -0700 Subject: [PATCH] removed extra semicolon --- lib/express-shopify-webhooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/express-shopify-webhooks.js b/lib/express-shopify-webhooks.js index f586b7e..500875c 100644 --- a/lib/express-shopify-webhooks.js +++ b/lib/express-shopify-webhooks.js @@ -98,7 +98,7 @@ shopifyWebhooks.validateSignature = function(req, res, buffer, encoding) { // from a single back slash to double back slashes // in this case we want to replace all \/ tuples // to \\/ - hmac.update(buffer.replace(/\//g, '\\/');); + hmac.update(buffer.replace(/\//g, '\\/')); var calculatedHmac = hmac.digest('base64'); if (calculatedHmac === headerHmac) req.validShopifyWebhook = true;