mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-01 16:01:03 +00:00
use Custom status code
thanks, @fdb-hiroshima Co-Authored-By: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com>
This commit is contained in:
parent
064dd79eef
commit
169469816d
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ pub fn domain_validation(
|
|||
if now.duration_since(*valid_until).as_secs() > 0 {
|
||||
validation_map.remove(&validation_id);
|
||||
// don't know how to cast Status::Gone to u16
|
||||
return Status::new(410, "validation expired");
|
||||
return Custom(Status::Gone, "validation expired");
|
||||
}
|
||||
|
||||
validation_map.remove(&validation_id);
|
||||
|
|
Loading…
Reference in a new issue