This commit is contained in:
xl
2023-11-17 09:43:39 +08:00
parent aba9c3a392
commit 13cd95ad35
2 changed files with 22 additions and 17 deletions
+2 -2
View File
@@ -16,9 +16,9 @@ class NotFoundController extends Controller
public function fail(): ResponseInterface
{
if ($this->request->getMethod() == 'OPTIONS') {
return \response()->withStatus(200, "empty content");
return $this->response->withStatus(200, "");
} else {
return \response()->withStatus(404, "not found page.");
return $this->response->withStatus(404, "not found page.");
}
}