revert fetch is_success changes

This commit is contained in:
debris 2017-08-04 14:12:27 +02:00
parent f72196f1bb
commit 7ddfd2f030

View File

@ -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`