0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/.changeset/silver-peaches-pump.md
Friedemann Sommer e9027f194b
Fix endpoint response with immutable header (#9876)
* add test

* added runtime endpoint test for `new Response`

* added `try..catch` for reroute directive handling
Fixes #9871

* added changeset

* replaced `try..catch` with HTTP status code check
based on the suggestion of @lilnasy

* updated changeset description

* added more tests for the endpoint reroute header

* fixed grammar  in `renderEndpoint` comment

* updated endpoint tests to check for the reroute directive header in lower-case

* updated changeset description
2024-01-30 22:45:26 +05:30

103 B

astro
patch

Fixes an issue where using Response.redirect in an endpoint led to an error.