RestExpress / RestExpress

Minimalist Java framework for rapidly creating scalable, containerless, RESTful microservices. Ship a production-quality, headless, RESTful API in the shortest time possible. Uses Netty for HTTP, Jackson for JSON, Metrics for metrics, properties files for configuration. Sub-projects and plugins enable, NoSQL, Swagger, Auth0, HAL integration, etc.

Home Page:https://groups.google.com/d/forum/restexpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content-Type == "text/plain" erroneously

tfredrich opened this issue · comments

When controller method returns empty string or string for JSON representation, content type is set to "text/plain" instead of "application/json"

Returning (or requesting) a wrapped JSON response seems to work appropriately, setting the content type to "application/json"

Resolved in 0.8.0 master as of 12 Dec 2012.