mirror of
https://github.com/curl/curl.git
synced 2026-07-24 06:27:16 +03:00
http2: make sure pause is done on HTTP
Since the function is called for any protocol, we can't assume that the HTTP struct is there without first making sure it is HTTP. Reported-by: Denis Goleshchikhin Fixes #7079 Closes #7080
This commit is contained in:
parent
5dfa4c08bb
commit
904b27d18d
1 changed files with 2 additions and 1 deletions
|
|
@ -2353,7 +2353,8 @@ CURLcode Curl_http2_stream_pause(struct Curl_easy *data, bool pause)
|
|||
DEBUGASSERT(data);
|
||||
DEBUGASSERT(data->conn);
|
||||
/* if it isn't HTTP/2, we're done */
|
||||
if(!data->conn->proto.httpc.h2)
|
||||
if(!(data->conn->handler->protocol & PROTO_FAMILY_HTTP) ||
|
||||
!data->conn->proto.httpc.h2)
|
||||
return CURLE_OK;
|
||||
#ifdef NGHTTP2_HAS_SET_LOCAL_WINDOW_SIZE
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue