Skip to content

Commit

Permalink
fix(response): support redirected prop
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Aug 27, 2019
1 parent 7558e7d commit 0d9714f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ process.stdin.on('end', function () {
url: response.url,
headers: Array.from(response.headers),
status: response.status,
statusText: response.statusText
statusText: response.statusText,
counter: response.redirected ? 1 : 0 // could be more than one, but no way of telling
}
])))
.catch(error => {
Expand Down

0 comments on commit 0d9714f

Please sign in to comment.