Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Jul 17, 2017
1 parent 9bf4682 commit 1f667b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lighthouse-core/audits/dobetterweb/uses-http2.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class UsesHTTP2Audit extends Audit {
static audit(artifacts) {
const devtoolsLogs = artifacts.devtoolsLogs[Audit.DEFAULT_PASS];
return artifacts.requestNetworkRecords(devtoolsLogs).then(networkRecords => {
// The parsedURL of network records parses URLs differently from URL class. Use `hostname` so
// that we can easily compare the values without making an expensive `new URL` call for each
// network record.
const finalHost = new URL(artifacts.URL.finalUrl).hostname;

// Filter requests that are on the same host as the page and not over h2.
Expand Down

0 comments on commit 1f667b7

Please sign in to comment.