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: pass custom statusText in Response #12105

Merged
merged 2 commits into from
Oct 2, 2024
Merged

fix: pass custom statusText in Response #12105

merged 2 commits into from
Oct 2, 2024

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Oct 2, 2024

Changes

The Response spec allows a custom statusText to be defined, which should be sent in the HTTP response. Currently we're not passing this in our response. This PR fixes this in dev and NodeApp. Other adapters will use their native Response handling.

Fixes #9401

Testing

Added test cases

Docs

Copy link

changeset-bot bot commented Oct 2, 2024

🦋 Changeset detected

Latest commit: d6f24f3

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 Oct 2, 2024
Copy link
Member

@Fryuni Fryuni left a comment

Choose a reason for hiding this comment

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

Beautiful

@ascorbic ascorbic merged commit 42037f3 into main Oct 2, 2024
13 checks passed
@ascorbic ascorbic deleted the return-status-text branch October 2, 2024 16:08
@astrobot-houston astrobot-houston mentioned this pull request Oct 2, 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.

The statusText property of the response object in the endpoint should be preserved.
4 participants