mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
typo
This commit is contained in:
parent
fcc270f121
commit
751a4f9bc9
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ pub async fn ignore_invalid_routes<B>(request: Request<B>, next: Next<B>) -> Res
|
||||||
// but "unknown" isn't really a valid user-agent
|
// but "unknown" isn't really a valid user-agent
|
||||||
else if user_agent == "unknown" {
|
else if user_agent == "unknown" {
|
||||||
// please set a valid user-agent
|
// please set a valid user-agent
|
||||||
return StatusCode::FORBIDDEN.into_response();
|
return StatusCode::BAD_REQUEST.into_response();
|
||||||
} else {
|
} else {
|
||||||
next.run(request).await
|
next.run(request).await
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue