Ignore:
Timestamp:
Mar 21, 2011, 3:04:22 PM (11 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/dbnp/studycapturing/StudyController.groovy

    r1621 r1655  
    349349                        }
    350350        }
     351
     352                // set output header to json
     353                response.contentType = 'application/json'
     354
    351355        render json as JSON
    352356    }
     
    375379     */
    376380    def ajaxGetAssays = {
    377 
    378381        def study = Study.read(params.id)
     382
     383                // set output header to json
     384                response.contentType = 'application/json'
     385
    379386        render study?.assays?.collect{[name: it.name, id: it.id]} as JSON
    380387    }
Note: See TracChangeset for help on using the changeset viewer.