From f6fe956a40af86ba2fe173290dd0fdab1e26cf0b Mon Sep 17 00:00:00 2001 From: AndreyGladkov Date: Fri, 21 Jun 2024 14:23:14 +0300 Subject: [PATCH] HH-220006 Add custom release version --- changelog.yaml | 6 ++++++ frontik/handler.py | 2 +- frontik/version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changelog.yaml b/changelog.yaml index 7954c3547..dedb30449 100644 --- a/changelog.yaml +++ b/changelog.yaml @@ -1,3 +1,9 @@ +- name: 7.5.9 + date: '2024-06-21T09:42:17.532559+03:00' + description: 'Добавлен заголовок времени выполнения запроса' + instructions: '' + compatible: true + - name: 7.5.8 date: '2024-04-11T09:42:17.532559+03:00' description: '' diff --git a/frontik/handler.py b/frontik/handler.py index 802f952e0..665e9428d 100644 --- a/frontik/handler.py +++ b/frontik/handler.py @@ -599,7 +599,7 @@ def finish(self, chunk: Optional[Union[str, bytes, dict]] = None) -> Future[None for name, value in self._mandatory_headers.items(): self.set_header(name, value) - self.set_header('X-Frontik-Execution-Time', str(self.request.request_time())) + self.set_header('Server-Timing', str(self.request.request_time())) for args, kwargs in self._mandatory_cookies.values(): try: diff --git a/frontik/version.py b/frontik/version.py index 62c1ef7f8..5be7142ea 100644 --- a/frontik/version.py +++ b/frontik/version.py @@ -1 +1 @@ -version = '7.5.8' +version = '7.5.9' diff --git a/pyproject.toml b/pyproject.toml index 36659caab..30e8a70f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'poetry.core.masonry.api' [tool.poetry] name = 'frontik' -version = '7.5.8' +version = '7.5.9' description = 'Frontik is an asyncronous Tornado-based application server' authors = ['architecture '] repository = 'https://github.com/hhru/frontik'