diff --git a/rest/rest-tests.ts b/rest/rest-tests.ts index 4ffe17d21..b19416c11 100644 --- a/rest/rest-tests.ts +++ b/rest/rest-tests.ts @@ -15,7 +15,7 @@ client({ path: '/data.json' }).then(function(response) { console.log('response: ', response); }); -client = rest.wrap(mime).wrap(errorCode, { code: 500 }); +client = rest.wrap(mime, { mime: 'application/json' }).wrap(errorCode, { code: 500 }); client({ path: '/data.json' }).then( function(response) { console.log('response: ', response);