Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nikromen committed Nov 20, 2023
1 parent 33f632b commit fc4b4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/views/apiv3_ns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fc4b4ef

Please sign in to comment.