Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Fixed few errors
Browse files Browse the repository at this point in the history
Fixes few errors, that make the code error upon compilation.
  • Loading branch information
MGlolenstine authored Apr 2, 2020
1 parent 2d81ff6 commit d00cc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,7 +54,7 @@ fn main() {
h
};

reqwest::ClientBuilder::new()
reqwest::blocking::ClientBuilder::new()
.default_headers(headers)
.build()
.unwrap()
Expand Down

0 comments on commit d00cc92

Please sign in to comment.