1
0
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:
Rob Ede
2022-07-11 01:44:46 +01:00
parent 4ff98dbaa5
commit a4a060994d
8 changed files with 248 additions and 1 deletions

View File

@ -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)