Skip to content

Commit

Permalink
fix(standalone): ignore esi query params
Browse files Browse the repository at this point in the history
  • Loading branch information
redallen committed Aug 3, 2021
1 parent fa06bb0 commit a7b6973
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports.registerChrome = ({ app, chromePath, keycloakUri, https, proxyVer
// Unfortunately we have to alter the contents of ALL text/html responses like akamai
// This means modifying the response object directly.
app.use((req, res, next) => {
const ext = path.extname(req.url);
const ext = path.extname(req.url.replace(/\?.*/, ''));
if (req.method === 'GET' && ['', '.hmt', '.html'].includes(ext)) {
function writeOrEnd(chunk, encoding, callback, oldFn) {
const ctype = res.getHeader('Content-Type');
Expand Down

0 comments on commit a7b6973

Please sign in to comment.