Remove dubious or unnecessary handler types of response mapping.
This commit is contained in:
parent
7909f673e5
commit
dfe2148333
|
@ -406,15 +406,9 @@ CONTENT_TYPE_BY_RENDERERS = {
|
||||||
# Handler source code is checked for which response types it returns
|
# 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
|
# If it returns (exactly) one of these, it will be used as render_format
|
||||||
RESPONSE_MAPPING = {
|
RESPONSE_MAPPING = {
|
||||||
"empty": "html",
|
|
||||||
"json": "json",
|
"json": "json",
|
||||||
"text": "text",
|
"text": "text",
|
||||||
"raw": "text",
|
|
||||||
"html": "html",
|
"html": "html",
|
||||||
"file": "html",
|
|
||||||
"file_stream": "text",
|
|
||||||
"stream": "text",
|
|
||||||
"redirect": "html",
|
|
||||||
"text/plain": "text",
|
"text/plain": "text",
|
||||||
"text/html": "html",
|
"text/html": "html",
|
||||||
"application/json": "json",
|
"application/json": "json",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user