Skip to content

Commit

Permalink
tests(smokehouse): set Content-Type for json served by static-server.…
Browse files Browse the repository at this point in the history
…js (#8078)
  • Loading branch information
connorjclark authored and brendankenny committed Apr 8, 2019
1 parent aca78af commit c410ce6
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 @@ -77,6 +77,8 @@ function requestHandler(request, response) {
headers['Content-Type'] = 'image/jpeg';
} else if (filePath.endsWith('.webp')) {
headers['Content-Type'] = 'image/webp';
} else if (filePath.endsWith('.json')) {
headers['Content-Type'] = 'application/json';
}

let delay = 0;
Expand Down

0 comments on commit c410ce6

Please sign in to comment.