Skip to content

Commit 2ccf18e

Browse files
committed
fix: clone response before using
1 parent f5363a7 commit 2ccf18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fetch-mock/src/Router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default class Router {
226226
// If the response is a pre-made Response, respond with it
227227
if (responseInput instanceof Response) {
228228
return {
229-
response: responseInput,
229+
response: responseInput.clone(),
230230
responseOptions: {},
231231
responseInput: {},
232232
};

0 commit comments

Comments
 (0)