Skip to content

Commit 619f3ed

Browse files
committed
Str response back to html
1 parent 0650929 commit 619f3ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plain/plain/views/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def get_response(self) -> ResponseBase:
8585
return result
8686

8787
if isinstance(result, str):
88-
return Response(result, content_type="text/plain")
88+
# Assume the str is rendered HTML
89+
return Response(result)
8990

9091
if isinstance(result, list):
9192
return JsonResponse(result, safe=False)

0 commit comments

Comments
 (0)