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: avoid response rewrite inside the dev server #11477

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

ematipico
Copy link
Member

@ematipico ematipico commented Jul 17, 2024

Changes

Closes #11306 once for all :)

The issue was specific to the dev server, where I didn't create a test for that.

I broke down the logic that was in place regarding the rerouting because it conflicts with the rewrite of the users. So I decided create a new header with its own logic

Testing

I created a test

Docs

Copy link

changeset-bot bot commented Jul 17, 2024

🦋 Changeset detected

Latest commit: 81e6aff

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

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jul 17, 2024
@ematipico ematipico force-pushed the fix/rewrite-dev-server branch from 8885323 to 81e6aff Compare July 17, 2024 14:20
@ematipico ematipico merged commit 7e9c4a1 into main Jul 17, 2024
13 checks passed
@ematipico ematipico deleted the fix/rewrite-dev-server branch July 17, 2024 16:01
@astrobot-houston astrobot-houston mentioned this pull request Jul 17, 2024
ematipico added a commit that referenced this pull request Jul 18, 2024
* fix: avoid response rewrite inside the dev server

* breakdown logic of reroute and rewrite
@astrobot-houston astrobot-houston mentioned this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewriting doesn't use HTTP status code from rewritten response
2 participants