diff --git a/packages/http/httpcall_server.js b/packages/http/httpcall_server.js index 8735910c86..2323063cdc 100644 --- a/packages/http/httpcall_server.js +++ b/packages/http/httpcall_server.js @@ -1,4 +1,3 @@ -import { EJSON } from 'meteor/ejson'; import { path } from 'path'; import { fetch, Request } from 'meteor/fetch'; import { URL } from 'meteor/url'; @@ -39,7 +38,7 @@ function _call (method, url, options, callback) { let content = options.content; if (options.data) { - content = EJSON.stringify(options.data); + content = JSON.stringify(options.data); headers['Content-Type'] = 'application/json'; } diff --git a/packages/http/httpcall_tests.js b/packages/http/httpcall_tests.js index 372a0d5287..b5aa4f258c 100644 --- a/packages/http/httpcall_tests.js +++ b/packages/http/httpcall_tests.js @@ -1,4 +1,3 @@ -import { EJSON } from 'meteor/ejson'; import { HTTP } from 'meteor/http'; // URL prefix for tests to talk to @@ -421,7 +420,7 @@ testAsyncMulti('httpcall - params', [ const data = result.data; test.equal(data.method, method); test.equal(data.url, expect_url); - test.equal(data.body, expect_body, `${method} ${url} ${EJSON.stringify(params)} - expect body`); + test.equal(data.body, expect_body, `${method} ${url} ${JSON.stringify(params)} - expect body`); } })) } diff --git a/packages/http/package.js b/packages/http/package.js index 276c868cda..19638e85d5 100644 --- a/packages/http/package.js +++ b/packages/http/package.js @@ -24,7 +24,6 @@ Package.onTest(function (api) { api.use('webapp', 'server'); api.use('underscore'); api.use('random'); - api.use('ejson'); api.use('http', ['client', 'server']); api.use('tinytest'); api.use('test-helpers', ['client', 'server']);