From 17f79d251994ad4abea313739a5322f7b1352d91 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Thu, 16 Feb 2023 01:09:08 +0300 Subject: libcurl: update to 7.88.0 --- libs/libcurl/src/h2h3.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libs/libcurl/src/h2h3.c') diff --git a/libs/libcurl/src/h2h3.c b/libs/libcurl/src/h2h3.c index fb301b4cbb..6a4c7bc1b8 100644 --- a/libs/libcurl/src/h2h3.c +++ b/libs/libcurl/src/h2h3.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2022, Daniel Stenberg, , et al. + * Copyright (C) Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -118,6 +118,7 @@ static header_instruction inspect_header(const char *name, size_t namelen, CURLcode Curl_pseudo_headers(struct Curl_easy *data, const char *mem, /* the request */ const size_t len /* size of request */, + size_t* hdrlen /* opt size of headers read */, struct h2h3req **hp) { struct connectdata *conn = data->conn; @@ -291,6 +292,12 @@ CURLcode Curl_pseudo_headers(struct Curl_easy *data, } } + if(hdrlen) { + /* Skip trailing CRLF */ + end += 4; + *hdrlen = end - mem; + } + hreq->entries = nheader; *hp = hreq; -- cgit v1.2.3