Skip to content

Commit 17e19e4

Browse files
committed
fix(proxy): ensure fallback response is an instance of Response
1 parent 0a0e60a commit 17e19e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class FetchProxy {
185185
options,
186186
)
187187

188-
if (fallbackResponse) {
188+
if (fallbackResponse instanceof Response) {
189189
// If onError provided a fallback response, return it
190190
return fallbackResponse
191191
}

0 commit comments

Comments
 (0)