Skip to content

Commit

Permalink
Fix error on favicon.png
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 26, 2024
1 parent 59c3a94 commit b410aee
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,18 @@ function loaded(page, browser) {
request.headers().origin = 'http://localhost:3001';
}
console.log(`Request: ${url}`);
request.continue({
url,
headers: {
// Don't be intranet
'Forwarded': 'for=8.8.8.8;proto=https',
'Cache-Control': 'no-cache',
},
});
if (url.startsWith('http://localhost:') && url.endsWith('/theme/favicon.ico')) {
request.respond(OSMImage);
} else {
request.continue({
url,
headers: {
// Don't be intranet
'Forwarded': 'for=8.8.8.8;proto=https',
'Cache-Control': 'no-cache',
},
});
}
}
} else if (
url.includes('tile.openstreetmap.org') ||
Expand Down

0 comments on commit b410aee

Please sign in to comment.