mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
http2: remove the third (unused) argument from http2_data_done()
Closes #13154
This commit is contained in:
parent
33d9652a90
commit
0c820427f2
10
lib/http2.c
10
lib/http2.c
@ -280,14 +280,12 @@ static void free_push_headers(struct h2_stream_ctx *stream)
|
||||
stream->push_headers_used = 0;
|
||||
}
|
||||
|
||||
static void http2_data_done(struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data, bool premature)
|
||||
static void http2_data_done(struct Curl_cfilter *cf, struct Curl_easy *data)
|
||||
{
|
||||
struct cf_h2_ctx *ctx = cf->ctx;
|
||||
struct h2_stream_ctx *stream = H2_STREAM_CTX(data);
|
||||
|
||||
DEBUGASSERT(ctx);
|
||||
(void)premature;
|
||||
if(!stream)
|
||||
return;
|
||||
|
||||
@ -841,7 +839,7 @@ static void discard_newhandle(struct Curl_cfilter *cf,
|
||||
struct Curl_easy *newhandle)
|
||||
{
|
||||
if(newhandle->req.p.http) {
|
||||
http2_data_done(cf, newhandle, TRUE);
|
||||
http2_data_done(cf, newhandle);
|
||||
}
|
||||
(void)Curl_close(&newhandle);
|
||||
}
|
||||
@ -2466,10 +2464,10 @@ static CURLcode cf_h2_cntrl(struct Curl_cfilter *cf,
|
||||
result = http2_data_done_send(cf, data);
|
||||
break;
|
||||
case CF_CTRL_DATA_DETACH:
|
||||
http2_data_done(cf, data, TRUE);
|
||||
http2_data_done(cf, data);
|
||||
break;
|
||||
case CF_CTRL_DATA_DONE:
|
||||
http2_data_done(cf, data, arg1 != 0);
|
||||
http2_data_done(cf, data);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user