Skip to content

Commit

Permalink
Merge pull request #842 from GoogleChrome/841
Browse files Browse the repository at this point in the history
Fixes #841. Only returns the necessary json for extendedInfo
  • Loading branch information
ebidel authored Oct 27, 2016
2 parents 2892c53 + e454b5c commit c334d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/audits/dobetterweb/uses-http2.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ class UsesHTTP2Audit extends Audit {
const notH2 = /HTTP\/[01][\.\d]?/i.test(record.protocol);
return sameHost && notH2;
}).map(record => {
return Object.assign({
return {
label: record.protocol,
url: record.url // .url is a getter and not copied over for the assign.
}, record);
};
});

let displayValue = '';
Expand Down

0 comments on commit c334d99

Please sign in to comment.