Skip to content

Commit 66efffb

Browse files
committed
Fix for GRAILS-10973: Fix default Config.groovy: default format should be the first key in grails.mime.types
1 parent d861d01 commit 66efffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-resources/src/grails/grails-app/conf/Config.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ grails.project.groupId = appName // change this to alter the default package nam
1515

1616
// The ACCEPT header will not be used for content negotiation for user agents containing the following strings (defaults to the 4 major rendering engines)
1717
grails.mime.disable.accept.header.userAgents = ['Gecko', 'WebKit', 'Presto', 'Trident']
18-
grails.mime.types = [
18+
grails.mime.types = [ // the first one is the default format
19+
html: ['text/html','application/xhtml+xml'],
1920
all: '*/*',
2021
atom: 'application/atom+xml',
2122
css: 'text/css',
2223
csv: 'text/csv',
2324
form: 'application/x-www-form-urlencoded',
24-
html: ['text/html','application/xhtml+xml'],
2525
js: 'text/javascript',
2626
json: ['application/json', 'text/json'],
2727
multipartForm: 'multipart/form-data',

0 commit comments

Comments
 (0)