Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Taku Amano · committed by GitHub · parent 532632a · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:deno_dist/context.ts+1 added-1 removed
274 unmodified lines
275 }276 // If Content-Type is not set, we don't have to set `text/plain`.277 // Fewer the header values, it will be faster.278 if (this._preparedHeaders['content-type']) {279 this._preparedHeaders['content-type'] = 'text/plain; charset=UTF8'279 this._preparedHeaders['content-type'] = 'text/plain; charset=UTF-8'280 }281 return typeof arg === 'number'282 ? this.newResponse(text, arg, headers)283 : this.newResponse(text, arg)
101 unmodified lines
modified:src/context.ts+1 added-1 removed
274 unmodified lines
275 }276 // If Content-Type is not set, we don't have to set `text/plain`.277 // Fewer the header values, it will be faster.278 if (this._preparedHeaders['content-type']) {279 this._preparedHeaders['content-type'] = 'text/plain; charset=UTF8'279 this._preparedHeaders['content-type'] = 'text/plain; charset=UTF-8'280 }281 return typeof arg === 'number'282 ? this.newResponse(text, arg, headers)283 : this.newResponse(text, arg)
101 unmodified lines