summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-20 00:13:50 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-20 00:13:50 +0000
commit2bae9a4e8d8b77f8a99df6829547a60f883632a3 (patch)
tree23fb470b275654a93d2aa0e8dc010f1e1ac6094a
parent61507ec1fa61fe134547a7eac9541375c6215b33 (diff)
Fix wrong header variable
-rw-r--r--src/helix/mod.rs4
1 files changed, 2 insertions, 2 deletions
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<T: DeserializeOwned + 'static + Send> Future for ApiRequest<T> {
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::<i32>().ok());
@@ -540,7 +540,7 @@ impl<T: DeserializeOwned + 'static + Send> Future for ApiRequest<T> {
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::<u32>().ok());