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.
opts.json
false
1 parent 301604f commit 656a71eCopy full SHA for 656a71e
1 file changed
src/runtime/internal/error/dev.ts
@@ -67,7 +67,7 @@ export async function defaultHandler(
67
68
// Use HTML response only when user-agent expects it (browsers)
69
const useJSON =
70
- opts?.json || !event.req.headers.get("accept")?.includes("text/html");
+ opts?.json ?? !event.req.headers.get("accept")?.includes("text/html");
71
72
// Prepare headers
73
const headers: HeadersInit = {
0 commit comments