Skip to content

Commit

Permalink
spread
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Oct 6, 2020
1 parent 8ff44ac commit 5990081
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lighthouse-core/test/network-records-to-devtools-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ function addRedirectResponseIfNeeded(networkRecords, record) {
// populate `redirectResponse` with original's data, more or less.
const originalResponse = getResponseReceivedEvent(originalRecord).params.response;
originalResponse.status = originalRecord.statusCode || 302;
return Object.assign({}, record, {
return {
...record,
redirectResponseTimestamp: originalRecord.endTime,
redirectResponse: originalResponse,
});
};
}

/**
Expand Down

0 comments on commit 5990081

Please sign in to comment.