Skip to content
Myr

perf: remove unrequired cloning of ctx.res (#589)

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

Response constructor's 2nd argument does not require a cloned response as all it does is read these fields and does not modify anything: - status - statusText - headers > https://fetch.spec.whatwg.org/#initialize-a-response

authored by Jake Champion · committed by GitHub · parent f973fc1 · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/middleware/compress/index.ts+1 added-1 removed