Skip to content

Commit a5c966d

Browse files
committed
check final response in poll_informational
1 parent 55a0d9d commit a5c966d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/proto/streams/recv.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ impl Recv {
377377
// If it's not, we put it back
378378
if let Some(event) = stream.pending_recv.pop_front(&mut self.buffer) {
379379
match event {
380+
Event::Headers(Client(response)) => {
381+
// Final response
382+
stream.pending_recv.push_front(&mut self.buffer, Event::Headers(Client(response)));
383+
return Poll::Ready(None);
384+
}
380385
Event::InformationalHeaders(Client(response)) => {
381386
// Found an informational response, return it
382387
return Poll::Ready(Some(Ok(response)));

0 commit comments

Comments
 (0)