From ac7eeda87f8b71843815258edf8db159c306bd2e Mon Sep 17 00:00:00 2001 From: Taku Amano Date: Fri, 28 Apr 2023 12:06:23 +0900 Subject: [PATCH] fix(context): Fix typo in charset. (#1046) --- deno_dist/context.ts | 2 +- src/context.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno_dist/context.ts b/deno_dist/context.ts index ae878b15..f12e9610 100644 --- a/deno_dist/context.ts +++ b/deno_dist/context.ts @@ -276,7 +276,7 @@ export class Context< // If Content-Type is not set, we don't have to set `text/plain`. // Fewer the header values, it will be faster. if (this._preparedHeaders['content-type']) { - this._preparedHeaders['content-type'] = 'text/plain; charset=UTF8' + this._preparedHeaders['content-type'] = 'text/plain; charset=UTF-8' } return typeof arg === 'number' ? this.newResponse(text, arg, headers) diff --git a/src/context.ts b/src/context.ts index e9909028..4ca50daf 100644 --- a/src/context.ts +++ b/src/context.ts @@ -276,7 +276,7 @@ export class Context< // If Content-Type is not set, we don't have to set `text/plain`. // Fewer the header values, it will be faster. if (this._preparedHeaders['content-type']) { - this._preparedHeaders['content-type'] = 'text/plain; charset=UTF8' + this._preparedHeaders['content-type'] = 'text/plain; charset=UTF-8' } return typeof arg === 'number' ? this.newResponse(text, arg, headers)