改进App类控制器没有返回值返回204状态码

This commit is contained in:
thinkphp
2016-12-13 11:50:16 +08:00
parent 082b3bea81
commit ebf2431a50

View File

@@ -175,7 +175,7 @@ class App
$type = $isAjax ? Config::get('default_ajax_return') : Config::get('default_return_type'); $type = $isAjax ? Config::get('default_ajax_return') : Config::get('default_return_type');
$response = Response::create($data, $type); $response = Response::create($data, $type);
} else { } else {
$response = Response::create(); $response = Response::create('', 204);
} }
// 监听app_end // 监听app_end