Search before asking
Environment
Windows
EventMesh version
master
What happened
The response body is not recognised as JSON in Postman, and the Content-Type header missing:


How to reproduce
That's because NetUtils.sendSuccessResponseHeaders(httpExchange); is in front of httpExchange.getResponseHeaders().add(CONTENT_TYPE, APPLICATION_JSON); and headers are sent out before they are set correctly.
Debug logs
No response
Are you willing to submit PR?
Search before asking
Environment
Windows
EventMesh version
master
What happened
The response body is not recognised as JSON in Postman, and the Content-Type header missing:
How to reproduce
That's because
NetUtils.sendSuccessResponseHeaders(httpExchange);is in front ofhttpExchange.getResponseHeaders().add(CONTENT_TYPE, APPLICATION_JSON);and headers are sent out before they are set correctly.Debug logs
No response
Are you willing to submit PR?