From 2bae9a4e8d8b77f8a99df6829547a60f883632a3 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Thu, 20 Dec 2018 00:13:50 +0000 Subject: Fix wrong header variable --- src/helix/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helix') diff --git a/src/helix/mod.rs b/src/helix/mod.rs index c0dd2a9..3ed4494 100644 --- a/src/helix/mod.rs +++ b/src/helix/mod.rs @@ -530,7 +530,7 @@ impl Future for ApiRequest { let maybe_remaining = response.headers() - .get(&mut_limits.header_limit) + .get(&mut_limits.header_remaining) .and_then(|x| x.to_str().ok()) .and_then(|x| x.parse::().ok()); @@ -540,7 +540,7 @@ impl Future for ApiRequest { let maybe_reset = response.headers() - .get(&mut_limits.header_limit) + .get(&mut_limits.header_reset) .and_then(|x| x.to_str().ok()) .and_then(|x| x.parse::().ok()); -- cgit v1.2.3