Skip to content

[Bug] The response body is not recognised as JSON in query WebHook config endpoints #4286

@Pil0tXia

Description

@Pil0tXia

Search before asking

  • I had searched in the issues 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

image

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?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions