Wilfred Spiegelenburg created YUNIKORN-1734:
-----------------------------------------------
Summary: Missing headers in REST response
Key: YUNIKORN-1734
URL: https://issues.apache.org/jira/browse/YUNIKORN-1734
Project: Apache YuniKorn
Issue Type: Bug
Components: core - common
Reporter: Wilfred Spiegelenburg
REST responses should have the content type header set to JSON.
The usage REST responses, users; user; groups and group, do not have any
headers set as they do not call {{writeHeaders(w)}}.
Also in case that the parameters are not set we return a JSON error response
object without setting the header (introduced in YUNIKORN-1472). The JSON error
response is written before without ever calling {{writeHeaders(w)}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]