File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public function __construct()
293293 // only allow ajax requests
294294 if (!$ this ->input ->is_ajax_request () and config_item ('rest_ajax_only ' )) {
295295 $ response = array ('status ' => false , 'error ' => 'Only AJAX requests are accepted. ' )
296- $ this ->response ($ response , 505 );
296+ $ this ->response ($ response , 406 ); // Set status to 406 NOT ACCEPTABLE
297297 }
298298
299299 // When there is no specific override for the current class/method, use the default auth value set in the config
@@ -349,7 +349,7 @@ public function _remap($object_called, $arguments)
349349 }
350350
351351 $ pattern = '/^(.*)\.( ' .implode ('| ' , array_keys ($ this ->_supported_formats )).')$/ ' ;
352-
352+
353353 if (preg_match ($ pattern , $ object_called , $ matches )) {
354354 $ object_called = $ matches [1 ];
355355 }
You can’t perform that action at this time.
0 commit comments