Skip to content
Myr

fix(proxy): remove spread operator from `Request` and `Response` classes (#3928)

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

* fix(proxy): remove spread operator from `Request` and `Response` classes * revert: remove spread operator from proxy

authored by Jonathan Haines · committed by GitHub · parent 35fccf2 · Browse files · 1 file+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

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:src/helper/ssg/ssg.test.tsx+2 added-2 removed
699 unmodified lines
700701 const prependContentAfterResponseHook = (prefix: string): AfterResponseHook => {702 return async (res: Response): Promise<Response> => {703 const originalText = await res.text()704 return new Response(`${prefix}${originalText}`, { ...res })704 return new Response(`${prefix}${originalText}`, res)705 }706 }707708 const appendContentAfterResponseHook = (suffix: string): AfterResponseHook => {709 return async (res: Response): Promise<Response> => {710 const originalText = await res.text()711 return new Response(`${originalText}${suffix}`, { ...res })711 return new Response(`${originalText}${suffix}`, res)712 }713 }714715 beforeEach(() => {
75 unmodified lines