Skip to content

fix: don't forward a null accept-language header to sub-requests - #16527

Merged
Rich-Harris merged 1 commit into
sveltejs:version-3from
Nic-Polumeyv:fix-fetch-accept-language
Jul 28, 2026
Merged

Rich-Harris merged 1 commit into
sveltejs:version-3from
Nic-Polumeyv:fix-fetch-accept-language

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Member

#7722 added accept-language inheritance below the authorization inheritance without porting its null guard, so when the incoming request has no Accept-Language (requests made during prerendering never do), every internal sub-request gets the literal string null.

@pkg-svelte-dev

ghost commented Jul 26, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 892c515:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/892c515150881505ae0d349c74f471692334f132

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16527

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

ghost commented Jul 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 892c515

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

ghost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@Rich-Harris
Rich-Harris merged commit 15dc603 into sveltejs:version-3 Jul 28, 2026
@Nic-Polumeyv
Nic-Polumeyv deleted the fix-fetch-accept-language branch July 30, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants