TOOLS-1592 triton CLI *using node 6* fails various commands with MD5 errors

Reviewed by: Julien Gilli <julien.gilli@joyent.com>
This commit is contained in:
Trent Mick 2016-10-31 16:54:55 -07:00
parent e7c321f3db
commit 84338a44b2
3 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,11 @@ Known issues:
## not yet released ## not yet released
## 4.14.2
- TOOLS-1592 First workaround for a possible BadDigestError when using
node v6.
## 4.14.1 ## 4.14.1
- TOOLS-1587 'triton profile docker-setup' fails when path to 'docker' has - TOOLS-1587 'triton profile docker-setup' fails when path to 'docker' has

View File

@ -204,7 +204,7 @@ SaferJsonClient.prototype.parse = function parse(req, callback) {
res.on('data', function onData(chunk) { res.on('data', function onData(chunk) {
if (contentMd5Hash) { if (contentMd5Hash) {
contentMd5Hash.update(chunk.toString('utf8')); contentMd5Hash.update(chunk.toString('utf8'), 'binary');
} }
if (gz) { if (gz) {

View File

@ -1,7 +1,7 @@
{ {
"name": "triton", "name": "triton",
"description": "Joyent Triton CLI and client (https://www.joyent.com/triton)", "description": "Joyent Triton CLI and client (https://www.joyent.com/triton)",
"version": "4.14.1", "version": "4.14.2",
"author": "Joyent (joyent.com)", "author": "Joyent (joyent.com)",
"dependencies": { "dependencies": {
"assert-plus": "0.2.0", "assert-plus": "0.2.0",