Skip to content

Commit

Permalink
fix latency api rv (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug authored Oct 27, 2023
1 parent 4a82dec commit 22e5298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clash_lib/src/app/api/handlers/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async fn get_proxy_delay(
let mut r = HashMap::new();
r.insert("delay".to_owned(), delay);
r.insert("meanDelay".to_owned(), mean_delay);
(headers, axum::response::Json(delay)).into_response()
(headers, axum::response::Json(r)).into_response()
}
Err(err) => (
StatusCode::BAD_REQUEST,
Expand Down

0 comments on commit 22e5298

Please sign in to comment.