diff --git a/client/src/AdriftClient.ts b/client/src/AdriftClient.ts index 60ab972..6ef705d 100644 --- a/client/src/AdriftClient.ts +++ b/client/src/AdriftClient.ts @@ -20,7 +20,7 @@ const NULL_BODY_STATUSES = [101, 103, 204, 205, 304]; function createBodyStream( body: BodyInit | null ): ReadableStream | null { - if (body === null) return null; + if (body === null || typeof body === "undefined") return null; if (typeof body === "string") { body = new TextEncoder().encode(body);