mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 09:46:58 +01:00
Fix Issue 50: connection.js remove onlyJsonResponse
This commit is contained in:
parent
5cdcf3bac1
commit
e99b4b9874
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user