Commit fe92a4fa authored by Tristan Cavelier's avatar Tristan Cavelier

localstorage storage response hash renamed to digest

parent bcac78b7
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
param._attachment, e.target.result); param._attachment, e.target.result);
that._storage.setItem(that._localpath + "/" + param._id, doc); that._storage.setItem(that._localpath + "/" + param._id, doc);
command.success(status, command.success(status,
{"hash": doc._attachments[param._attachment].digest}); {"digest": doc._attachments[param._attachment].digest});
}, function (e) { }, function (e) {
command.error( command.error(
"request_timeout", "request_timeout",
......
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
deepEqual(answer, { deepEqual(answer, {
"attachment": "putattmt2", "attachment": "putattmt2",
"hash": "sha256-e3b0c44298fc1c149afbf4c8996fb9242" + "digest": "sha256-e3b0c44298fc1c149afbf4c8996fb9242" +
"7ae41e4649b934ca495991b7852b855", // hex_sha256("") "7ae41e4649b934ca495991b7852b855", // hex_sha256("")
"id": "putattmt1", "id": "putattmt1",
"method": "putAttachment", "method": "putAttachment",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment