Skip to content

Commit

Permalink
fixed grammar in renderEndpoint comment
Browse files Browse the repository at this point in the history
  • Loading branch information
friedemannsommer authored Jan 30, 2024
1 parent 9473d69 commit 1636f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/runtime/server/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function renderEndpoint(
// NOT be subject to rerouting to 404.astro or 500.astro.
if (response.status === 404 || response.status === 500) {
// Only `Response.redirect` headers are immutable, therefore a `try..catch` is not necessary.
// Note: `Response.redirect` can only constructed with HTTP status codes: 301, 302, 303, 307, 308.
// Note: `Response.redirect` can only be called with HTTP status codes: 301, 302, 303, 307, 308.
// Source: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#parameters
response.headers.set(REROUTE_DIRECTIVE_HEADER, 'no');
}
Expand Down

0 comments on commit 1636f61

Please sign in to comment.