Skip to content
Myr

chore:denoify (#1095)

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

authored by Yusuke Wada · committed by GitHub · parent e7c0a51 · Browse files · 1 file+14 added−1 removed
This commit

State

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

Diff stats

1 file+14 added−1 removed

  • other:+14 added−1 removed

1 file+14 added−1 removed

modified:deno_dist/context.ts+14 added-1 removed
143 unmodified lines
144 this._res = _res145 this.finalized = true146 }147148 header = (name: string, value: string, options?: { append?: boolean }): void => {148 header = (name: string, value: string | undefined, options?: { append?: boolean }): void => {149 // Clear the header150 if (value === undefined) {151 if (this._headers) {152 this._headers.delete(name)153 } else if (this._preparedHeaders) {154 delete this._preparedHeaders[name.toLocaleLowerCase()]155 }156 if (this.finalized) {157 this.res.headers.delete(name)158 }159 return160 }161162 if (options?.append) {163 if (!this._headers) {164 this._headers = new Headers(this._preparedHeaders)165 this._preparedHeaders = {}
237 unmodified lines