Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

tfredrich opened this issue Sep 27, 2012 · 2 comments
Labels

Comments

@tfredrich
Copy link
Member

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

@tfredrich
Copy link
Member Author

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
…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
@tfredrich
Copy link
Member Author

Resolved in 0.8.0 master as of 12 Dec 2012.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant