diff --git a/src/requestresponseinfo.ts b/src/requestresponseinfo.ts index 61e579c9..6870ddee 100644 --- a/src/requestresponseinfo.ts +++ b/src/requestresponseinfo.ts @@ -466,7 +466,7 @@ class RequestResponseInfo { const contentType = headers.get(CONTENT_TYPE); const contentLength = headers.get(CONTENT_LENGTH); - if (Number(contentLength) !== length) { + if (contentLength !== null && Number(contentLength) !== length) { return false; }