From d00cc9203c54574079a37b6029c125bf794c6e3b Mon Sep 17 00:00:00 2001 From: MGlolenstine Date: Thu, 2 Apr 2020 08:53:43 +0200 Subject: [PATCH] Fixed few errors Fixes few errors, that make the code error upon compilation. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9348f2a..05ba188 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ fn main() { .proxy("http://127.0.0.1:1087") // use proxy, default None .random_user_agent(true) // use random user agent, default false .user_agent("Mozilla/5.0") // specify user agent manually, default "" - .wait(5); // cloudflare's waiting time, but in my test it can be 0, default 0 + .wait(5) // cloudflare's waiting time, but in my test it can be 0, default 0 }; // to pass the verify both of the cookie and user agent are needed @@ -54,7 +54,7 @@ fn main() { h }; - reqwest::ClientBuilder::new() + reqwest::blocking::ClientBuilder::new() .default_headers(headers) .build() .unwrap()