Pre-check

  • [x] I am sure that all the content I provide is in English.

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

3.3.4-SNAPSHOT

Steps to reproduce this issue

define a rest method like void post();use tri-rest. after post request, response body will return null.

Image

What you expected to happen

If the result is null, nothing should be written to the response.

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • [x] Yes I am willing to submit a pull request on my own!

Code of Conduct

Comment From: oxsean

It would be better to return HTTP 204 (No Content) in this case.