diff --git a/src/server/proxy/pixiv.rs b/src/server/proxy/pixiv.rs index e4fd2b0..709f57d 100644 --- a/src/server/proxy/pixiv.rs +++ b/src/server/proxy/pixiv.rs @@ -36,7 +36,7 @@ impl ResponseFor>> for ProxyPixivContext { ); let url = http_error!(params.get("url").ok_or("Url is required.")); let uri = http_error!(Uri::try_from(url)); - let host = uri.host().ok_or("Host is needed.")?; + let host = http_error!(uri.host().ok_or("Host is needed.")); if !host.ends_with(".pximg.net") { http_error!(403, Err("Host is not allowed.")); }