Skip to content

Commit

Permalink
fix: upgrade reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Dec 12, 2018
1 parent 7fce2b5 commit 25564d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ doc = true

[dependencies]
futures = "0.1"
reqwest = "0.8.0"
reqwest = "0.9.5"
env_logger = "0.4.3"
log = "0.3"
serde = "1.0"
Expand Down
5 changes: 2 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ impl<'a> Client<'a> {
/// Run a Get HTTP query
pub fn get(&self, path: &str, query: QueryParams) -> Result<GoogleAPIResponse, Box<Error>> {
let client = reqwest::Client::new();

Ok(client
.request(Method::Get, &self.url(path, query))
.request(Method::GET, &self.url(path, query))
.send()
.tap_ok(|resp| println!("Response: {:#?}", resp))?
.json()?)
Expand All @@ -160,7 +159,7 @@ impl<'a> Client<'a> {
let client = reqwest::Client::new();

Ok(client
.request(Method::Post, &self.url(path, query))
.request(Method::POST, &self.url(path, query))
.body("")
.send()
.tap_ok(|resp| println!("Response: {:#?}", resp))?
Expand Down

0 comments on commit 25564d3

Please sign in to comment.