Skip to content

Commit

Permalink
Fix regression with Rust 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Apr 17, 2018
1 parent f2490b1 commit aa617ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where T: AsRef<[u8]> + 'static {
Ok(future::Loop::Continue((reader, buf)))
})
};
let skip = response.and_then(|(reader, buf)| {
let skip = response.and_then(move |(reader, buf)| {
let reader = reader.take(8 * 1024);
future::loop_fn((reader, buf), skip_headers)
.map(|reader| reader.into_inner())
Expand Down

0 comments on commit aa617ca

Please sign in to comment.