mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 03:48:35 +01:00
lmao
This commit is contained in:
parent
b65d291a3e
commit
75836f3fb6
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ pub struct Parameters {
|
||||||
async fn proxy(url: String) -> Result<Bytes, Error> {
|
async fn proxy(url: String) -> Result<Bytes, Error> {
|
||||||
let (mut resp, mime) = fetch(&url).await?;
|
let (mut resp, mime) = fetch(&url).await?;
|
||||||
|
|
||||||
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) {
|
if matches!(mime.type_(), mime::IMAGE | mime::VIDEO) {
|
||||||
let bytes = get_bytes(&mut resp).await?;
|
let bytes = get_bytes(&mut resp).await?;
|
||||||
Ok(bytes)
|
Ok(bytes)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue