Skip to content

Commit

Permalink
ngtcp2: adapt to changed end of headers callback proto
Browse files Browse the repository at this point in the history
Closes #8322
  • Loading branch information
bagder committed Jan 24, 2022
1 parent a97eb81 commit f6dd94f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/vquic/ngtcp2.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -1043,14 +1043,15 @@ static int decode_status_code(const uint8_t *value, size_t len)
}

static int cb_h3_end_headers(nghttp3_conn *conn, int64_t stream_id,
void *user_data, void *stream_user_data)
int fin, void *user_data, void *stream_user_data)
{
struct Curl_easy *data = stream_user_data;
struct HTTP *stream = data->req.p.http;
CURLcode result = CURLE_OK;
(void)conn;
(void)stream_id;
(void)user_data;
(void)fin;

/* add a CRLF only if we've received some headers */
if(stream->firstheader) {
Expand Down

0 comments on commit f6dd94f

Please sign in to comment.