Skip to content

Commit aa668b4

Browse files
TimherlaudTim Herlaud
authored and
Tim Herlaud
committed
19909 [FrameworkBundle] Add support for setting headers
1 parent d4f51e6 commit aa668b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,11 @@ provided by Symfony:
705705
site_name: 'ACME'
706706
theme: 'dark'
707707
708+
# add headers in response
709+
headers:
710+
Content-Type: 'image/svg+xml'
711+
foo: 'bar'
712+
708713
.. code-block:: xml
709714
710715
<!-- config/routes.xml -->

0 commit comments

Comments
 (0)