Skip to content

Commit c863fd0

Browse files
committed
Fix request error handling
1 parent ca3cfa2 commit c863fd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/transport.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ impl ReqwestTransport {
2020
R: for<'a> serde::de::Deserialize<'a>,
2121
{
2222
match self.client.post(self.url.clone()).json(&req).send().await {
23-
Ok(res) if res.status().is_success() => res.json().await,
24-
Ok(res) => Err(res.error_for_status().unwrap_err()),
23+
Ok(res) => res.json().await,
2524
Err(e) => Err(e),
2625
}
2726
}

0 commit comments

Comments
 (0)