Pil0tXia opened a new issue, #4286:
URL: https://github.com/apache/eventmesh/issues/4286

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Environment
   
   Windows
   
   ### EventMesh version
   
   master
   
   ### What happened
   
   The response body is not recognised as JSON in Postman, and the Content-Type 
header missing:
   
   
![image](https://github.com/apache/eventmesh/assets/41445332/a4fa15f2-ae08-4f73-8c3e-493e92951fcd)
   
   
![image](https://github.com/apache/eventmesh/assets/41445332/d30aefd3-1828-47c2-9f99-375334033158)
   
   
   ### 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?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to