166 : fileName = LCase(listlast(cgi.script_name,"/"));
167 : if(!(FindNoCase("_json.cfm", fileName) || FindNoCase("_print.cfm", fileName))){ //We don't want to set error code on ajax responses, as it breaks many interactions that don't have an error: function(){} within the ajax call.
168 : cfheader(statuscode="500", statustext="Internal Server Error");
169 : } else {
170 : cfheader(statuscode="200", statustext="Ok");
|