added 201 header

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-02-22 14:06:35 +01:00
parent 1369cab7fb
commit 1ad945fbf2
1 changed files with 2 additions and 2 deletions

View File

@ -380,13 +380,13 @@ class RequestController
} else {
$domain = new Domain(name: $name, content: $content);
if ($result = $this->domainRepository->insert(domain: $domain)) {
$this->header = "201 Created";
$this->status = "201 Created";
$this->message = $result;
} else {
$this->header = "500 Server error";
$this->status = "500 Server error";
$this->message = $result;
}
$this->message = $result;
}
}
}