Commit 42cb18b9 authored by Titouan Soulard's avatar Titouan Soulard

erp5_api_style: fix Content-Type for hyperschema

parent 0527daa8
......@@ -29,6 +29,9 @@ data["links"] = data["links"] + populateLinks("post", "post/", context.ERP5Site_
data["links"] = data["links"] + populateLinks("put", "put/", context.ERP5Site_getAllActionListForAPIPut())
data["links"] = data["links"] + populateLinks("allDocs", "allDocs/", context.ERP5Site_getAllActionListForAPIAllDocs())
if context.REQUEST is not None:
context.REQUEST.RESPONSE.setHeader("Content-Type", "application/json")
import json
return json.dumps(
data,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment