Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Content-Type == "text/plain" erroneously #40

Closed
tfredrich opened this Issue Sep 27, 2012 · 2 comments

Comments

Projects
None yet
1 participant
Owner

tfredrich commented Sep 27, 2012

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

Owner

tfredrich commented Sep 27, 2012

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

tfredrich added a commit that referenced this issue Dec 12, 2012

Enhanced unit tests and example applications, upgraded libraries, to …
…verify issue #40 (#40).  Changed ResponseProcessor.process() to always set content type, even if response body is null.

tfredrich added a commit that referenced this issue Dec 12, 2012

Owner

tfredrich commented Dec 12, 2012

Resolved in 0.8.0 master as of 12 Dec 2012.

@tfredrich tfredrich closed this Dec 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment