From 84c6b6561f8a537f43b0647e4dbd7f2b258e2174 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 29 Apr 2015 15:21:45 +0200 Subject: http2: more stream-oriented data, stream ID 0 is for connections --- lib/transfer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index 267e0a1cc..2d7b13785 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -317,8 +317,7 @@ static int data_pending(const struct connectdata *conn) TRUE. The thing is if we read everything, then http2_recv won't be called and we cannot signal the HTTP/2 stream has closed. As a workaround, we return nonzero here to call http2_recv. */ - ((conn->handler->protocol&PROTO_FAMILY_HTTP) && conn->httpversion == 20 && - conn->proto.httpc.closed); + ((conn->handler->protocol&PROTO_FAMILY_HTTP) && conn->httpversion == 20); #else Curl_ssl_data_pending(conn, FIRSTSOCKET); #endif -- cgit v1.2.3