How to change status code of response in grails filter -
i'm using grails 2.3.7 ; objective forward (not redirect !) requests not ajax view 'index.gsp'
i've created filter :
import javax.servlet.http.httpservletresponse class singlepagefilters { def filters = { isnotajax(uri: '/**') { before = { if (!request.xhr) { render(status:httpservletresponse.sc_ok, view: 'index') return false; } } } } }
this filter works, status code of response 404, never 200. it's seems can't change de response status code filter.
has hint solve problem ?
Comments
Post a Comment