From 982152267c308262523b7dfbb08aba13d178b8c2 Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 19 Dec 2023 14:11:40 +0000 Subject: [PATCH] add more proxy types --- january/src/routes/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/january/src/routes/proxy.rs b/january/src/routes/proxy.rs index f53e1634..5c79df14 100644 --- a/january/src/routes/proxy.rs +++ b/january/src/routes/proxy.rs @@ -26,7 +26,7 @@ pub struct Parameters { async fn proxy(url: String) -> Result { let (mut resp, mime) = fetch(&url).await?; - if matches!(mime.type_(), mime::IMAGE | mime::VIDEO) { + if matches!(mime.type_(), mime::IMAGE | mime::VIDEO | mime::CSS | mime::TEXT_CSS | mime::TEXT_CSS_UTF8 | mime::FONT | mime::FONT_WOFF | mime::FONT_WOFF2 | mime::WOFF | mime::WOFF2) { let bytes = get_bytes(&mut resp).await?; Ok(bytes) } else {