Ignore:
Timestamp:
Mar 21, 2011, 3:04:22 PM (12 years ago)
Author:
work@…
Message:

make sure all json methods also set a proper json header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/HomeController.groovy

    r1625 r1655  
    164164                }
    165165
     166                // set output header to json
     167                response.contentType = 'application/json'
     168
    166169                // render result
    167170                if (params.callback) {
Note: See TracChangeset for help on using the changeset viewer.