From af4e1ade571317396c570bbe14162ad60b6ee852 Mon Sep 17 00:00:00 2001 From: Phuc Date: Fri, 22 Mar 2024 12:30:18 +0700 Subject: [PATCH] fix: wrong type charset in default content type --- src/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html.ts b/src/html.ts index c7d66f5..3f60eb0 100644 --- a/src/html.ts +++ b/src/html.ts @@ -8,7 +8,7 @@ import { isHtml } from './utils' export function html(options: HtmlOptions = {}) { // Defaults - options.contentType ??= 'text/html; charset=utf8' + options.contentType ??= 'text/html; charset=utf-8' options.autoDetect ??= true options.isHtml ??= isHtml options.autoDoctype ??= true