Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't delete headers in a redirect #170

Merged
merged 2 commits into from
Oct 11, 2022
Merged

fix: don't delete headers in a redirect #170

merged 2 commits into from
Oct 11, 2022

Conversation

Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented Oct 11, 2022

The Edge Runtime removes some unstable headers (see #91) to be consistent to a regular fetch spec.

The thing is, under a redirect, headers can't be modified, so just I ward that lines to avoid users to threat with an unexpected error.

Plus, a redirect don't need to treat with headers since just 'location' is needed.

Closes #168

@changeset-bot
Copy link

changeset-bot bot commented Oct 11, 2022

🦋 Changeset detected

Latest commit: 28b9b03

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

This PR includes changesets to release 1 package
Name Type
edge-runtime 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

@vercel
Copy link

vercel bot commented Oct 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
edge-runtime ✅ Ready (Inspect) Visit Preview Oct 11, 2022 at 0:13AM (UTC)

@Kikobeats Kikobeats merged commit 4cee8dd into main Oct 11, 2022
@Kikobeats Kikobeats deleted the redirect-headers branch October 11, 2022 12:33
@Kikobeats Kikobeats mentioned this pull request Oct 24, 2022
jridgewell pushed a commit to jridgewell/edge-runtime that referenced this pull request Jun 23, 2023
* fix: don't delete headers in a redirect

* Create selfish-insects-suffer.md
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.

Deleting Headers Causing Immutable TypeErrors
2 participants