diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index 439cbf2e..7f679c7d 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -577,6 +577,9 @@ def format_for_response(content): return "" response.status = 200 + if isinstance(content, HTTPResponse): + return content + # Return JSON-style response response.content_type = "application/json" return json_encode(content, cls=JSONExtendedEncoder)