mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 00:14:39 -05:00
add more proxy types
This commit is contained in:
parent
de6756c104
commit
982152267c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ pub struct Parameters {
|
|||
async fn proxy(url: String) -> Result<Bytes, Error> {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue