diff --git a/lib/browser/rpc.js b/lib/browser/rpc.js index e77a2f56..427df21e 100644 --- a/lib/browser/rpc.js +++ b/lib/browser/rpc.js @@ -179,7 +179,12 @@ function makeRequest(url, data) { // The global __debug__ object is provided by Visual Studio Code. if (global.__debug__) { let request = global.__debug__.require('sync-request'); - let response = request('POST', url, {json: data}); + let response = request('POST', url, { + body: JSON.stringify(data), + headers: { + "Content-Type": "text/plain;charset=UTF-8" + } + }); statusCode = response.statusCode; responseText = response.body.toString('utf-8');