From 65e5eca61215f6f703823bf65727ed7e70ef8575 Mon Sep 17 00:00:00 2001 From: METO Date: Mon, 25 Dec 2023 19:57:53 +0800 Subject: [PATCH] docs: fix setResponseHeader params --- docs/content/3.config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/3.config.md b/docs/content/3.config.md index 1e097c5bf5..3c36d36bdf 100644 --- a/docs/content/3.config.md +++ b/docs/content/3.config.md @@ -301,7 +301,7 @@ export default defineNitroConfig({ ```js [error.ts] export default defineNitroErrorHandler((error, event) => { - setResponseHeader('Content-Type', 'text/plain') + setResponseHeader(event, 'Content-Type', 'text/plain') return send(event, '[custom error handler] ' + error.stack) }); ```