Fix a typo
This commit is contained in:
parent
30093d3a9f
commit
ee96d2b754
@ -49,7 +49,7 @@ pub fn server_error(req: &Request<'_>) -> Ructe {
|
|||||||
#[post("/csrf-violation?<target>")]
|
#[post("/csrf-violation?<target>")]
|
||||||
pub fn csrf_violation(target: Option<String>, rockets: PlumeRocket) -> Ructe {
|
pub fn csrf_violation(target: Option<String>, rockets: PlumeRocket) -> Ructe {
|
||||||
if let Some(uri) = target {
|
if let Some(uri) = target {
|
||||||
eprintln!("Csrf violation while acceding \"{}\"", uri)
|
eprintln!("Csrf violation while accessing \"{}\"", uri)
|
||||||
}
|
}
|
||||||
render!(errors::csrf(&rockets.to_context()))
|
render!(errors::csrf(&rockets.to_context()))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user