Commit b7cd4c1e authored by Anderson's avatar Anderson Committed by 偏右

Update request.js

Fix bug, pass additional parameters to then chain in promise.
parent 02e81108
......@@ -121,7 +121,7 @@ export default function request(
}
return fetch(url, newOptions)
.then(checkStatus)
.then(cachedSave)
.then(response => cachedSave(response, hashcode))
.then(response => {
// DELETE and 204 do not return data by default
// using .json will report an error.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment