Unverified Commit 3651cfbf authored by wyx's avatar wyx Committed by GitHub
Browse files

[router] fix: validate HTTP status codes in health check (#12631)

parent c8547ecd
......@@ -145,6 +145,7 @@ async fn try_http_health_check(
.timeout(Duration::from_secs(timeout_secs))
.send()
.await
.and_then(reqwest::Response::error_for_status)
.map_err(|e| format!("Health check failed: {}", e))?;
Ok(())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment