fix ua
This commit is contained in:
parent
a14bf93302
commit
aa594ec1d8
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ impl<'r> FromRequest<'r> for RequestClient {
|
||||||
pub fn is_browser(req: &Request) -> bool {
|
pub fn is_browser(req: &Request) -> bool {
|
||||||
let ua = req
|
let ua = req
|
||||||
.headers()
|
.headers()
|
||||||
.get("usesr-agent")
|
.get("User-Agent")
|
||||||
.next()
|
.next()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_lowercase();
|
.to_lowercase();
|
||||||
|
|
Loading…
Add table
Reference in a new issue