From dfe214833363905ddb0951a2955aed2bcef8a630 Mon Sep 17 00:00:00 2001 From: "L. Karkkainen" Date: Sun, 29 Jan 2023 01:59:24 +0000 Subject: [PATCH] Remove dubious or unnecessary handler types of response mapping. --- sanic/errorpages.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sanic/errorpages.py b/sanic/errorpages.py index a1481f0a..42a9b907 100644 --- a/sanic/errorpages.py +++ b/sanic/errorpages.py @@ -406,15 +406,9 @@ CONTENT_TYPE_BY_RENDERERS = { # Handler source code is checked for which response types it returns # If it returns (exactly) one of these, it will be used as render_format RESPONSE_MAPPING = { - "empty": "html", "json": "json", "text": "text", - "raw": "text", "html": "html", - "file": "html", - "file_stream": "text", - "stream": "text", - "redirect": "html", "text/plain": "text", "text/html": "html", "application/json": "json",