Skip to content

Commit 3ace95f

Browse files
committed
check final response in poll_informational
1 parent ac5cdd0 commit 3ace95f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/proto/streams/recv.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@ 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
383+
.pending_recv
384+
.push_front(&mut self.buffer, Event::Headers(Client(response)));
385+
return Poll::Ready(None);
386+
}
380387
Event::InformationalHeaders(Client(response)) => {
381388
// Found an informational response, return it
382389
return Poll::Ready(Some(Ok(response)));

0 commit comments

Comments
 (0)