aboutsummaryrefslogtreecommitdiff
path: root/src/response.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/response.rs')
-rw-r--r--src/response.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/response.rs b/src/response.rs
index 6c8c760..4f7c693 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -25,10 +25,8 @@ use {
pub async fn default(
req: actix_web::HttpRequest,
) -> Result<HttpResponse, Error> {
- if vec![
- "/proxy", "/proxy/", "/x", "/x/", "/raw", "/raw/", "/nocss", "/nocss/",
- ]
- .contains(&req.path())
+ if ["/proxy", "/proxy/", "/x", "/x/", "/raw", "/raw/", "/nocss", "/nocss/"]
+ .contains(&req.path())
{
return Ok(
HttpResponse::Ok()