From da36dc512074c19ded67494c0a209d90c57c32b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 16 Mar 2015 19:29:59 +0100 Subject: [PATCH] Manage bytes in JSON-RPC issue4637 review9121002 --- src/rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc.js b/src/rpc.js index ff6582aa63..7b13ae0218 100644 --- a/src/rpc.js +++ b/src/rpc.js @@ -130,7 +130,7 @@ case 'timedelta': value = Sao.TimeDelta(null, value.seconds); break; - case 'buffer': + case 'bytes': // javascript's atob does not understand linefeed // characters var byte_string = atob(value.base64.replace(/\s/g, '')); @@ -217,7 +217,7 @@ } } else if (value instanceof Uint8Array) { value = { - '__class__': 'buffer', + '__class__': 'bytes', 'base64': btoa(String.fromCharCode.apply(null, value)) }; if (parent) {