http2: revert call the handle-closed function correctly on closed stream

Reverts 252790c533

Assisted-by: Gergely Nagy
Fixes #7400
Closes #7525
This commit is contained in:
Artur Sinila 2021-08-02 01:34:14 +03:00 committed by Daniel Stenberg
parent 7da2990b19
commit ccffb6ec16
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1624,10 +1624,6 @@ static ssize_t http2_recv(struct Curl_easy *data, int sockindex,
return -1;
}
if(stream->closed)
/* closed overrides paused */
return http2_handle_stream_close(conn, data, stream, err);
/* Nullify here because we call nghttp2_session_send() and they
might refer to the old buffer. */
stream->upload_mem = NULL;