revert fetch is_success changes
This commit is contained in:
parent
f72196f1bb
commit
7ddfd2f030
@ -297,7 +297,7 @@ impl Response {
|
||||
|
||||
/// Returns `true` if response status code is successful.
|
||||
pub fn is_success(&self) -> bool {
|
||||
self.status().is_success()
|
||||
self.status() == reqwest::StatusCode::Ok
|
||||
}
|
||||
|
||||
/// Returns `true` if content type of this response is `text/html`
|
||||
|
Loading…
Reference in New Issue
Block a user