Skip to content

Commit

Permalink
tests(smokehouse): set Content-Type for webp images served by static-…
Browse files Browse the repository at this point in the history
…server.js (#8015)
  • Loading branch information
connorjclark authored and paulirish committed Apr 8, 2019
1 parent 553a7c1 commit fcd8115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighthouse-cli/test/fixtures/static-server.js
Expand Up @@ -75,6 +75,8 @@ function requestHandler(request, response) {
headers['Content-Type'] = 'image/gif';
} else if (filePath.endsWith('.jpg') || filePath.endsWith('.jpeg')) {
headers['Content-Type'] = 'image/jpeg';
} else if (filePath.endsWith('.webp')) {
headers['Content-Type'] = 'image/webp';
}

let delay = 0;
Expand Down

0 comments on commit fcd8115

Please sign in to comment.