mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
docs: fix example in ctx.md
fix check_beta_user function parameter type
This commit is contained in:
parent
0de54eb907
commit
e9762fe95f
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ pub struct MyCtx {
|
|||
beta_user: bool,
|
||||
}
|
||||
|
||||
fn check_beta_user(req: &pingora_http::RequestHeader) -> bool {
|
||||
fn check_beta_user(req: &pingora::http::RequestHeader) -> bool {
|
||||
// some simple logic to check if user is beta
|
||||
req.headers.get("beta-flag").is_some()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue