[7.3] 42b4d320c Slightly more coverage & consistency
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Oct 24 15:08:13 UTC 2023
commit 42b4d320c3115d8477768deb5fe0f9bf6f0c48eb
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 26be1b4d1..b05ab31e0 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