1
0
forked from ScoDoc/ScoDoc

Fix: content-type of page with SVG graph

This commit is contained in:
Emmanuel Viennet 2021-06-26 09:35:44 +02:00
parent eba7e17628
commit 769671b0d4

View File

@ -1594,7 +1594,6 @@ def formsemestre_graph_parcours(
% MAX_ETUD_IN_DESCR, % MAX_ETUD_IN_DESCR,
html_sco_header.sco_footer(context, REQUEST), html_sco_header.sco_footer(context, REQUEST),
] ]
REQUEST.RESPONSE.setHeader("content-type", "application/xhtml+xml")
return "\n".join(H) return "\n".join(H)
else: else:
raise ValueError("invalid format: %s" % format) raise ValueError("invalid format: %s" % format)