From 0ec11ce16e66845b166c9991f28456efba9deefe Mon Sep 17 00:00:00 2001 From: M Date: Fri, 10 Feb 2017 18:28:03 +1300 Subject: [PATCH] rpc.js: removed Buffer.from There hasn't Buffer Object in react native environment. --- lib/browser/rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/rpc.js b/lib/browser/rpc.js index 88fc0d94..427df21e 100644 --- a/lib/browser/rpc.js +++ b/lib/browser/rpc.js @@ -180,7 +180,7 @@ function makeRequest(url, data) { if (global.__debug__) { let request = global.__debug__.require('sync-request'); let response = request('POST', url, { - body: Buffer.from(JSON.stringify(data)), + body: JSON.stringify(data), headers: { "Content-Type": "text/plain;charset=UTF-8" }