Only works in there's a request body because of this line:
|
` if (typeof ${resultVar}.body?.bytes === utils.FUNCTION)`, |
|
` return ${resultVar};`, |
Body is undefined, so the if-statement fails.
Simple work around:
- new Response(undefined, ...)
+ new Response("", ...)
A full instanceof Response is really slow, so I'd like a different way of detecting this consistently 🤔
Only works in there's a request body because of this line:
zeta/src/internal/compile-fetch-function.ts
Lines 80 to 81 in dfa67b1
Body is
undefined, so the if-statement fails.Simple work around:
A full
instanceof Responseis really slow, so I'd like a different way of detecting this consistently 🤔