fix: don't treat non-success HTTP codes as transport errors (#618)

This commit is contained in:
Alex Hancock 2026-01-18 20:42:12 -05:00 • committed by GitHub
commit 2e08001f32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,7 +121,6 @@ impl StreamableHttpClient for reqwest::Client {
}
}
let status = response.status();
let response = response.error_for_status()?;
if matches!(
status,
reqwest::StatusCode::ACCEPTED | reqwest::StatusCode::NO_CONTENT