fix: reset correct value (#2618)

This commit is contained in:
Matthias Seitz
2023-05-10 12:14:27 +02:00
committed by GitHub
parent d342762a3a
commit abcadd987c

View File

@ -178,7 +178,7 @@ where
if let Some(fut) = Pin::new(&mut self.body).as_pin_mut() { if let Some(fut) = Pin::new(&mut self.body).as_pin_mut() {
if let Poll::Ready(res) = fut.poll(cx) { if let Poll::Ready(res) = fut.poll(cx) {
self.header = None; self.body = None;
return Poll::Ready(ResponseResult::Body(res)) return Poll::Ready(ResponseResult::Body(res))
} }
} }