diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-09-19 18:43:17 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-09-19 18:43:17 +0200 |
| commit | a862046b0d34a2d23fdfa25d7bfb5dcc8c73dd45 (patch) | |
| tree | 18b9f8f19e57f57613ea6e6bef90fb5f59999660 /src | |
| parent | 66ea53eb077fce74d483fd60d0105d85654088bc (diff) | |
| download | frippy-a862046b0d34a2d23fdfa25d7bfb5dcc8c73dd45.tar.gz frippy-a862046b0d34a2d23fdfa25d7bfb5dcc8c73dd45.zip | |
Main: Update dependencies
This fixes builds for OpenSSL 1.1.1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/error.rs | 1 | ||||
| -rw-r--r-- | src/main.rs | 3 | ||||
| -rw-r--r-- | src/utils.rs | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/error.rs b/src/error.rs index 251e812..6317376 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,7 +4,6 @@ use failure::Fail; pub fn log_error(e: &FrippyError) { let text = e.causes() - .skip(1) .fold(format!("{}", e), |acc, err| format!("{}: {}", acc, err)); error!("{}", text); } diff --git a/src/main.rs b/src/main.rs index ad4c020..9aed069 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,8 +57,7 @@ fn main() { // Print any errors that caused frippy to shut down if let Err(e) = run() { - let text = e.causes() - .skip(1) + let text = e.iter_causes() .fold(format!("{}", e), |acc, err| format!("{}: {}", acc, err)); error!("{}", text); } diff --git a/src/utils.rs b/src/utils.rs index 3275e62..ef4d419 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -2,7 +2,7 @@ use std::borrow::Cow; use std::io::{self, Read}; use std::time::Duration; -use reqwest::header::Connection; +use reqwest::header::{CONNECTION, HeaderValue}; use reqwest::{Client, ClientBuilder}; use self::error::{DownloadError, ErrorKind}; @@ -60,7 +60,7 @@ impl<'a> Url<'a> { let mut response = client .get(self.url.as_ref()) - .header(Connection::close()) + .header(CONNECTION, HeaderValue::from_static("close")) .send() .context(ErrorKind::Connection)?; |
