Mercurial > p > roundup > code
diff CHANGES.txt @ 7806:4fc89509ce78
doc: change to support templates setting their own mime type.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 13 Mar 2024 17:54:06 -0400 |
| parents | 8bdf0484215c |
| children | 6c5f8da9fca7 |
line wrap: on
line diff
--- a/CHANGES.txt Wed Mar 13 17:53:05 2024 -0400 +++ b/CHANGES.txt Wed Mar 13 17:54:06 2024 -0400 @@ -94,6 +94,12 @@ 2024 class; fix John Rouillard) - use ast.eval_literal() rather than eval() to turn CSV exported string values into Python object/values. +- use template's guess at Content-Type in headers only if Content-Type + is not already set. This allows a template to set its own content + type. For example: _generic.translate can set content type (via + request.client.additional_headers) to application/json and return + json from the template. This json could access the 1i18n functions + for a javascript helper. (John Rouillard) Features:
