Skip to content

Commit

Permalink
fix(context): Fix typo in charset. (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma authored Apr 28, 2023
1 parent 532632a commit ac7eeda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno_dist/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac7eeda

Please sign in to comment.