From afec0ac3579674092256027e69b2be17233bb2fd Mon Sep 17 00:00:00 2001 From: eduwoll <44789742+eduwoll@users.noreply.github.com> Date: Tue, 30 Jan 2024 20:21:21 -0300 Subject: [PATCH] Fix 'content-type' header 'content-type' header charset value should be 'utf-8', not 'utf8'. --- src/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html.ts b/src/html.ts index a7bcd09..7f40b32 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