We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 701d9e3 commit c6d29faCopy full SHA for c6d29fa
src/node/routes/index.ts
@@ -137,7 +137,7 @@ export const register = async (
137
// page (as opposed to an xhr request). Don't use `req.accepts()` since
138
// *every* request that I've seen (in Firefox and Chromium at least)
139
// includes `*/*` making it always truthy. Even for css/javascript.
140
- if (req.headers.accept && req.headers.accept.includes("text/html")) {
+ if (req.headers.accept && req.headers.accept.includes("text/html")) {
141
const resourcePath = path.resolve(rootPath, "src/browser/pages/error.html")
142
res.set("Content-Type", getMediaMime(resourcePath))
143
const content = await fs.readFile(resourcePath, "utf8")
0 commit comments