[master] 134248b5f Slightly more coverage & consistency

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 22 10:59:05 UTC 2023


commit 134248b5f8970fcf87e2e195adc196f770a7b433
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 22 10:58:30 2023 +0000

    Slightly more coverage & consistency

diff --git a/bin/varnishd/http2/cache_http2_hpack.c b/bin/varnishd/http2/cache_http2_hpack.c
index 85e045bbd..6261a2cd1 100644
--- a/bin/varnishd/http2/cache_http2_hpack.c
+++ b/bin/varnishd/http2/cache_http2_hpack.c
@@ -119,7 +119,7 @@ h2h_checkhdr(const struct http *hp, const char *b, size_t namelen, size_t len)
 	}
 	if (state == 3 && b[len - 1] <= 0x20) {
 		VSLb(hp->vsl, SLT_BogoHeader,
-		    "Illegal val (end) %.*s",
+		    "Illegal field value (end) %.*s",
 		    (int)(len > 20 ? 20 : len), b);
 		return (H2SE_PROTOCOL_ERROR);
 	}
diff --git a/bin/varnishtest/tests/t02023.vtc b/bin/varnishtest/tests/t02023.vtc
index 59c7fe5d7..5f5f434bf 100644
--- a/bin/varnishtest/tests/t02023.vtc
+++ b/bin/varnishtest/tests/t02023.vtc
@@ -90,3 +90,10 @@ client c1 {
 		rxrst
 	} -run
 } -run
+
+client c1 {
+	stream 1 {
+		txreq -hdr "foo" "bar "
+		rxrst
+	} -run
+} -run


More information about the varnish-commit mailing list