[fix] omit Content-Length header from requests made by load fetch
* [fix] exclude Content-Length when forwarding headers for SSR
Fixes
* add changeset
ADD
.changeset/lazy-owls-run.md
+---
+'@sveltejs/kit': patch
+---
+
+[fix] prevent `Content-Length` header from being incorrectly inherited by requests made from `load`'s `fetch` during SSR

MODIFY
packages/kit/src/runtime/server/page/fetch.js
packages/kit/src/runtime/server/page/fetch.js
@@ -52,6 +52,7 @@ export function create_fetch({ event, options, state, route }) {
if (
key !== 'authorization' &&
key !== 'connection' &&
+ key !== 'content-length' &&
key !== 'cookie' &&
key !== 'host' &&
key !== 'if-none-match' &&

[fix] omit Content-Length header from requests made by load fetch (#5922)

* [fix] exclude Content-Length when forwarding headers for SSR

Fixes #5870

* add changeset