0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00

fix(context): Fix typo in charset. (#1046)

This commit is contained in:
Taku Amano 2023-04-28 12:06:23 +09:00 committed by GitHub
parent 532632aa88
commit ac7eeda87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)