We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca3cfa2 commit c863fd0Copy full SHA for c863fd0
client/src/transport.rs
@@ -20,8 +20,7 @@ impl ReqwestTransport {
20
R: for<'a> serde::de::Deserialize<'a>,
21
{
22
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()),
+ Ok(res) => res.json().await,
25
Err(e) => Err(e),
26
}
27
0 commit comments