Skip to content

Commit

Permalink
fix(hydrate): revert to reading from cached response part
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Feb 22, 2016
1 parent c7da6ec commit 3a10d8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/hydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ function parseHeader (str) {
}

export default function hydrate (value) {
const data = value.data
const xhr = data.body || {}
const headers = parseHeader(data.headers || {})
const xhr = value.body || {}
const headers = parseHeader(value.headers || {})

xhr.getAllResponseHeaders = function () {
return data.headers
return value.headers
}

xhr.getResponseHeader = function (header) {
Expand Down

0 comments on commit 3a10d8d

Please sign in to comment.