Remove references to error_on_non_2xx

This commit is contained in:
Jacob Hoffman-Andrews
2020-12-05 20:32:30 -08:00
parent 9e270c77e8
commit ac93fa7e18

View File

@@ -418,12 +418,10 @@ impl AgentBuilder {
/// .redirects(1) /// .redirects(1)
/// .build() /// .build()
/// .get("http://httpbin.org/status/301") /// .get("http://httpbin.org/status/301")
/// .error_on_non_2xx(false)
/// .call()?; /// .call()?;
/// assert_ne!(result.status(), 301); /// assert_ne!(result.status(), 301);
/// ///
/// let result = ureq::post("http://httpbin.org/status/307") /// let result = ureq::post("http://httpbin.org/status/307")
/// .error_on_non_2xx(false)
/// .send_bytes(b"some data")?; /// .send_bytes(b"some data")?;
/// assert_eq!(result.status(), 307); /// assert_eq!(result.status(), 307);
/// # Ok(()) /// # Ok(())