From fc4b4efd7b9e3d80709afb36e4f8df7726430782 Mon Sep 17 00:00:00 2001 From: Jiri Kyjovsky Date: Mon, 20 Nov 2023 01:18:01 +0100 Subject: [PATCH] WIP --- frontend/coprs_frontend/coprs/views/apiv3_ns/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/coprs_frontend/coprs/views/apiv3_ns/__init__.py b/frontend/coprs_frontend/coprs/views/apiv3_ns/__init__.py index c153aab71..592ef0f15 100644 --- a/frontend/coprs_frontend/coprs/views/apiv3_ns/__init__.py +++ b/frontend/coprs_frontend/coprs/views/apiv3_ns/__init__.py @@ -447,7 +447,7 @@ def warn_user_in_headers(self, *args, **kwargs): resp = endpoint_method(self, *args, **kwargs) if not isinstance(resp, tuple): # only resp body as dict was passed - return resp + (custom_header,) + return resp, custom_header for part_of_resp in resp[1:]: if isinstance(part_of_resp, dict):