Commit 7834e1db authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Prevent HTTP caching in case of 401

No need to calculate rendering in case of error.
parent 7f98a367
......@@ -669,6 +669,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
})\n
)\n
response.setStatus(401)\n
return ""\n
\n
elif mime_type != traversed_document.Base_handleAcceptHeader([mime_type]):\n
response.setStatus(406)\n
......
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