Skip to content

Commit

Permalink
fix empty data being returned when requested in /v2/
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Nov 17, 2023
1 parent f2f27f1 commit baf0720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async fn api_v2(data: Data<AppState>, 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
}
Expand Down

0 comments on commit baf0720

Please sign in to comment.