Skip to content

Commit

Permalink
Fix Issue 50: connection.js remove onlyJsonResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
michielmulders authored and tim committed Nov 23, 2017
1 parent 5cdcf3b commit e99b4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e99b4b9

Please sign in to comment.