ea
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user