Skip to content

Commit

Permalink
fix(serialise): fix to use response xhr
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Feb 10, 2016
1 parent ed89b0b commit e0ceafb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/serialize.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

export default function serialize (req, res) {
return {
headers: res.headers,
headers: res.xhr.getAllResponseHeaders(),
body: {
response: res.response,
responseType: res.responseType,
responseText: res.responseText,
responseType: res.xhr.responseType,
responseText: res.xhr.responseText,
status: res.status,
statusText: res.statusText
}
Expand Down

0 comments on commit e0ceafb

Please sign in to comment.