Skip to content

Commit

Permalink
Handle oneshot behavior correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Oct 27, 2020
1 parent a467dc7 commit 2db3c5e
Show file tree
Hide file tree
Showing 2 changed files with 250 additions and 121 deletions.
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use isahc::prelude::*;
fn main() -> Result<(), isahc::Error> {
// Send a GET request and wait for the response headers.
// Must be `mut` so we can read the response body.
let mut response = isahc::get("http://example.org")?;
let mut response = isahc::get("https://example.org")?;

// Print some basic info about the response to standard output.
println!("Status: {}", response.status());
Expand Down
Loading

0 comments on commit 2db3c5e

Please sign in to comment.