Skip to content

Commit 56df0e4

Browse files
committed
doc: change to support templates setting their own mime type.
1 parent acdeb17 commit 56df0e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ Fixed:
9494
2024 class; fix John Rouillard)
9595
- use ast.eval_literal() rather than eval() to turn CSV exported
9696
string values into Python object/values.
97+
- use template's guess at Content-Type in headers only if Content-Type
98+
is not already set. This allows a template to set its own content
99+
type. For example: _generic.translate can set content type (via
100+
request.client.additional_headers) to application/json and return
101+
json from the template. This json could access the 1i18n functions
102+
for a javascript helper. (John Rouillard)
97103

98104
Features:
99105

0 commit comments

Comments
 (0)