Compare commits
2 commits
c666415b80
...
1025f3b523
| Author | SHA1 | Date | |
|---|---|---|---|
| 1025f3b523 | |||
| aa7da4611b |
1 changed files with 3 additions and 2 deletions
|
|
@ -737,8 +737,9 @@ function CheckpointMiddleware() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip checkpoint for requests that don't accept HTML
|
// Only checkpoint requests explicitly accepting 'text/html'
|
||||||
if (!req.accepts('html')) {
|
const acceptHeader = request.headers.get('accept') || '';
|
||||||
|
if (!acceptHeader.toLowerCase().includes('text/html')) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue