From abe7203b7485ea6d5bf3c89403ed431a8a04ef69 Mon Sep 17 00:00:00 2001 From: Rhys Evans <wheresrhys@gmail.com> Date: Fri, 30 Aug 2024 10:33:54 +0100 Subject: [PATCH] docs: document when content-length gets added --- docs/docs/@fetch-mock/core/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/@fetch-mock/core/configuration.md b/docs/docs/@fetch-mock/core/configuration.md index 96773735..fee495a4 100644 --- a/docs/docs/@fetch-mock/core/configuration.md +++ b/docs/docs/@fetch-mock/core/configuration.md @@ -19,7 +19,7 @@ Options marked with a `†` can also be overridden for individual calls to `.moc `{Boolean}` default: `true` -Sets a `Content-Length` header on each response. +Sets a `Content-Length` header on each response, with the exception of responses whose body is a `FormData` or `ReadableStream` instance as these are hard/impossible to calculate up front. ### matchPartialBody