-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i18n(ru): Add and update translations for `astro-response-headers-rea…
…ssigned.mdx`, `error-reference.mdx` and `locals-not-an-object.mdx` pages (#7286) Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
- Loading branch information
1 parent
1ea7c98
commit b069cf4
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/content/docs/ru/reference/errors/astro-response-headers-reassigned.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: Astro.response.headers must not be reassigned. | ||
i18nReady: true | ||
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
--- | ||
|
||
> **AstroResponseHeadersReassigned**: Отдельные заголовки могут быть добавлены и удалены из `Astro.response.headers`, но не должны быть полностью заменены на другой экземпляр `Headers`. | ||
## Что пошло не так? | ||
Выбрасывается, когда значение устанавливается как поле `headers` в объекте `ResponseInit`, доступном как `Astro.response`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters