RestServer
RestServer copied to clipboard
auto empty response
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.