0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-24 06:58:22 -05:00

fix: add comma separator and format macro

This commit is contained in:
ddotthomas 2024-01-01 19:36:18 -07:00
parent 4f4cb220cc
commit db1115f19e

View File

@ -138,7 +138,7 @@ async fn results(
// We sort the list of engine so the cache keys will match between users. The cookie's list of engines is unordered.
engines.sort();
cache_key = cache_key + &(engines.join(""));
cache_key = format!("{}{}", cache_key, engines.join(","));
} else {
let mut engines: Vec<String> = config
.upstream_search_engines
@ -148,7 +148,7 @@ async fn results(
.collect();
engines.sort();
cache_key = cache_key + &(engines.join(""));
cache_key = format!("{}{}", cache_key, engines.join(","));
}
// fetch the cached results json.