[Bug] The response body is not recognised as JSON in query WebHook config endpoints #4286
Closed
2 tasks done
Labels
bug
Something isn't working
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?
The text was updated successfully, but these errors were encountered: