mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
add actorless websocket echo example
This commit is contained in:
@ -18,7 +18,6 @@ impl LangChoice {
|
||||
let lang = req
|
||||
.get_header::<AcceptLanguage>()
|
||||
.and_then(|lang| lang.preference().into_item())
|
||||
.map(|lang| lang.to_string())
|
||||
.map_or_else(|| "en".to_owned(), |lang| lang.to_string());
|
||||
|
||||
Self(lang)
|
||||
|
Reference in New Issue
Block a user