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:
parent
532632aa88
commit
ac7eeda87f
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user