Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
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).
Attachments
Issue Links
- relates to
-
YUNIKORN-1472 Replacement for gorilla/mux
- Closed
- links to