Remove proxy method on request (#220)

This commit is contained in:
Jacob Hoffman-Andrews
2020-11-12 23:25:05 -08:00
committed by GitHub
parent d6f31ebb52
commit 920eccf37a
3 changed files with 2 additions and 11 deletions

View File

@@ -330,7 +330,7 @@ impl<R: Read + Sized + Into<Stream>> PoolReturnRead<R> {
stream.reset()?;
// insert back into pool
let key = PoolKey::new(&unit.url, unit.req.proxy());
let key = PoolKey::new(&unit.url, unit.req.agent.config.proxy.clone());
unit.req.agent.state.pool.add(key, stream);
}