[
https://issues.apache.org/jira/browse/YUNIKORN-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722008#comment-17722008
]
Qi Zhu commented on YUNIKORN-1734:
----------------------------------
Thank you [~wilfreds] for catching this!
I take it, and i know the context about Replacement for gorilla/mux
YUNIKORN-1472
> 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
> Assignee: Qi Zhu
> Priority: Major
>
> 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]