From 103952d4392e5f637a1dc98053890e132a2ba027 Mon Sep 17 00:00:00 2001 From: Alexandr Nedvedicky Date: Thu, 14 Mar 2024 10:40:06 +0100 Subject: Minor docfix for OSSL_HTTP_REQ_CTX_set_max_response_hdr_lines(3) Also removal of duplicate assignment and addition of comment in test/http_test.c Follow up change to PR #23781 Reviewed-by: Matt Caswell Reviewed-by: Tom Cosgrove Reviewed-by: David von Oheimb Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23837) --- test/http_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/http_test.c b/test/http_test.c index 63783179f4..8015ca1960 100644 --- a/test/http_test.c +++ b/test/http_test.c @@ -432,7 +432,6 @@ static int test_http_resp_hdr_limit(size_t limit) mock_args.content_type = "text/plain"; mock_args.version = '1'; mock_args.out = rbio; - mock_args.content_type = "text/plain"; BIO_set_callback_ex(wbio, http_bio_cb_ex); BIO_set_callback_arg(wbio, (char *)&mock_args); @@ -448,6 +447,10 @@ static int test_http_resp_hdr_limit(size_t limit) OSSL_HTTP_REQ_CTX_set_max_response_hdr_lines(rctx, limit); mem = OSSL_HTTP_REQ_CTX_exchange(rctx); + /* + * Note the server sends 4 http response headers, thus we expect to + * see failure here when we set header limit in http response to 1. + */ if (limit == 1) res = TEST_ptr_null(mem); else -- cgit v1.2.3