From baf0720ec1957fb711fff8760bb88fdf0ddcc47a Mon Sep 17 00:00:00 2001 From: caipira113 Date: Fri, 17 Nov 2023 15:34:24 +0900 Subject: [PATCH] fix empty data being returned when requested in `/v2/` --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.rs b/src/handlers.rs index e855ec1..13b1905 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -60,7 +60,7 @@ async fn api_v2(data: Data, req: HttpRequest, bytes: Bytes) -> impl Re false }; if req.path() == "/v2/" { - reverse_proxy(data.clone(), url, req, bytes, true, auth).await + reverse_proxy(data.clone(), url, req, bytes, true, false).await } else { reverse_proxy(data.clone(), url, req, bytes, false, auth).await }