Skip to content

Commit

Permalink
Update connexion/decorators/response.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwann authored May 30, 2024
1 parent b7ec3da commit 16e2b48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connexion/decorators/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def _unpack_handler_response(
elif len(handler_response) == 2:
data, status_code_or_headers = handler_response
if isinstance(status_code_or_headers, int):
# Extra int call because of int subclasses such as http.HTTPStatus (IntEnum)
status_code = int(status_code_or_headers)
elif isinstance(status_code_or_headers, Enum) and isinstance(
status_code_or_headers.value, int
Expand Down

0 comments on commit 16e2b48

Please sign in to comment.