RestServer icon indicating copy to clipboard operation
RestServer copied to clipboard

auto empty response

Open darkv opened this issue 6 years ago • 0 comments

The current behavior when you do not return a value from your controller method is that an empty 200 response without CORS header is returned to the client.

This patch adds handling of empty responses by adding CORS header if configured and sets the HTTP status code to the appropriate 204 – No Content.

darkv avatar Dec 02 '18 09:12 darkv