Remove dubious or unnecessary handler types of response mapping.

This commit is contained in:
L. Karkkainen 2023-01-29 01:59:24 +00:00
parent 7909f673e5
commit dfe2148333

View File

@ -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",