You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grails-plugin-mimetypes/src/main/groovy/org/codehaus/groovy/grails/plugins/web/api/MimeTypesApiSupport.groovy
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,7 @@ class MimeTypesApiSupport {
49
49
String format = lookupFormat(formatProvider)
50
50
if (formats) {
51
51
if (format =='all') {
52
-
def firstKey = formats.keySet().iterator().next()
53
-
result = getResponseForFormat(formats[firstKey], firstKey, formatProvider)
52
+
result = resolveAllFormat(formatProvider, formats)
54
53
}
55
54
else {
56
55
// if the format has been specified then use that
@@ -69,8 +68,7 @@ class MimeTypesApiSupport {
69
68
else {
70
69
if (mime.extension =='all') {
71
70
matchFound =true
72
-
def firstKey = formats.keySet().iterator().next()
73
-
result = getResponseForFormat(formats[firstKey], firstKey, formatProvider)
71
+
result = resolveAllFormat(formatProvider, formats)
Copy file name to clipboardExpand all lines: grails-plugin-mimetypes/src/test/groovy/org/codehaus/groovy/grails/plugins/web/api/RequestAndResponseMimeTypesApiSpec.groovy
Copy file name to clipboardExpand all lines: grails-resources/src/grails/grails-app/conf/Config.groovy
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ grails.project.groupId = appName // change this to alter the default package nam
15
15
16
16
// The ACCEPT header will not be used for content negotiation for user agents containing the following strings (defaults to the 4 major rendering engines)
0 commit comments