Permalink
Browse files

Fix response format for 'text/plain'.

The MIME types mapped a format of 'text' to 'text-plain' instead of 'text/plain', hence why Accept: text/plain requests resulted in a format of 'html'.
  • Loading branch information...
pledbrook committed Jun 13, 2012
1 parent 666e22a commit a2bf169d5506e5fb354b2adb71adf8e22c3f652f
Showing with 1 addition and 1 deletion.
  1. +1 −1 grails-app/conf/Config.groovy
@@ -26,7 +26,7 @@ grails.mime.use.accept.header = true
grails.mime.file.extensions = false // enables the parsing of file extensions from URLs into the request format
grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
xml: ['text/xml', 'application/xml'],
- text: 'text-plain',
+ text: 'text/plain',
js: 'text/javascript',
rss: 'application/rss+xml',
atom: 'application/atom+xml',

0 comments on commit a2bf169

Please sign in to comment.