From e99b4b987465c68baf421c420a3e43f5b3ff489a Mon Sep 17 00:00:00 2001 From: michielmulders Date: Tue, 15 Aug 2017 21:15:13 +0200 Subject: [PATCH] Fix Issue 50: connection.js remove onlyJsonResponse --- src/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request.js b/src/request.js index 8a92923..6d98843 100644 --- a/src/request.js +++ b/src/request.js @@ -30,7 +30,7 @@ export default function request(url, config = {}) { } return baseRequest(apiUrl, requestConfig) - .then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url })) + .then(res => (res.json())) .catch(err => { console.error(err) throw err