[Pkg-javascript-commits] [node-sha.js] 60/237: interpret utf-8 as utf8

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:02:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-sha.js.

commit 53bd8080ed929d408856b762a43076b1cad19584
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Mon Dec 30 18:51:30 2013 +0700

    interpret utf-8 as utf8
---
 hash.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hash.js b/hash.js
index 7707020..987f4c1 100644
--- a/hash.js
+++ b/hash.js
@@ -31,6 +31,9 @@ Hash.prototype.update = function (data, enc) {
   if('string' === typeof data && !enc)
     enc = 'utf8'
 
+  if(enc === 'utf-8')
+    enc = 'utf8'
+
   if(enc === 'base64' || enc === 'utf8')
     data = toBuffer(data, enc), enc = null
  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git



More information about the Pkg-javascript-commits mailing list