0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-21 21:48:21 -05:00

🐛 fix: explicit content-type header for the search page response (#458)

This commit is contained in:
maokwen 2023-12-28 12:05:21 +08:00 committed by GitHub
parent 43357493d5
commit 9f5213cf42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,9 @@ pub async fn search(
get_results(page + 1)
);
Ok(HttpResponse::Ok().body(
Ok(HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(
crate::templates::views::search::search(
&config.style.colorscheme,
&config.style.theme,