This commit is contained in:
2025-11-26 05:09:36 +08:00
parent 926cbea0b9
commit 90ee572092
2 changed files with 103 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class ValidatorMiddleware implements MiddlewareInterface
if (!$validator->run($request)) {
Kiri::getLogger()->println($request->getUri()->getPath() . ' `' . $validator->error() . '`');
return $this->response->html($validator->error(), 415);
return $this->response->html($validator->error(), 400);
} else {
return $handler->handle($request);
}