summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@openssl.org>2024-03-14 10:40:06 +0100
committerTomas Mraz <tomas@openssl.org>2024-03-15 11:36:25 +0100
commit103952d4392e5f637a1dc98053890e132a2ba027 (patch)
treef147d276140b71b0a972c9033c4bf42d630bf477 /test
parent13ee569d415fe2a70482395c022613bb4a27eff7 (diff)
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 <matt@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23837)
Diffstat (limited to 'test')
-rw-r--r--test/http_test.c5
1 files changed, 4 insertions, 1 deletions
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