diff --git a/tests/data/test1700 b/tests/data/test1700
index ff1e2724f0..39260bc898 100644
--- a/tests/data/test1700
+++ b/tests/data/test1700
@@ -82,7 +82,6 @@ accept-ranges: bytes
content-length: 6
content-type: text/html
funny-head: yesyes
-server: cut-out
via: 1.1 nghttpx
-foo-
@@ -90,13 +89,12 @@ HTTP/2 200
date: Thu, 09 Nov 2010 14:49:00 GMT
content-length: 6
content-type: text/html
-server: cut-out
via: 1.1 nghttpx
-maa-
-s/^server:.*/server: cut-out
/
+s/^server: nghttpx.*\r?\n//
diff --git a/tests/data/test1701 b/tests/data/test1701
index d898617341..26da95f344 100644
--- a/tests/data/test1701
+++ b/tests/data/test1701
@@ -71,13 +71,12 @@ accept-ranges: bytes
content-length: 6
content-type: text/html
funny-head: yesyes
-server: cut-out
via: 1.1 nghttpx
-foo-
-s/^server:.*/server: cut-out
/
+s/^server: nghttpx.*\r?\n//
diff --git a/tests/data/test1702 b/tests/data/test1702
index 15757674dc..bbb9084e2d 100644
--- a/tests/data/test1702
+++ b/tests/data/test1702
@@ -67,12 +67,11 @@ accept-ranges: bytes
content-length: 6
content-type: text/html
funny-head: yesyes
-server: cut-out
via: 1.1 nghttpx
-s/^server:.*/server: cut-out
/
+s/^server: nghttpx.*\r?\n//
diff --git a/tests/data/test358 b/tests/data/test358
index 82ff8adf7a..3ea88da86f 100644
--- a/tests/data/test358
+++ b/tests/data/test358
@@ -65,7 +65,6 @@ content-length: 6
content-type: text/html
funny-head: yesyes
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
-server: nghttpx
via: 1.1 nghttpx
-foo-
@@ -75,12 +74,12 @@ content-length: 6
content-type: text/html
funny-head: yesyes
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
-server: nghttpx
via: 1.1 nghttpx
-foo-
+s/^server: nghttpx.*\r?\n//
# strip out the (dynamic) expire date from the file so that the rest
# matches
s/\"2([^\"]*)\"/TIMESTAMP/
diff --git a/tests/data/test359 b/tests/data/test359
index c0faee21dc..0481899bb2 100644
--- a/tests/data/test359
+++ b/tests/data/test359
@@ -65,7 +65,6 @@ content-length: 6
content-type: text/html
funny-head: yesyes
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
-server: nghttpx
via: 1.1 nghttpx
-foo-
@@ -75,12 +74,12 @@ content-length: 6
content-type: text/html
funny-head: yesyes
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
-server: nghttpx
via: 1.1 nghttpx
-foo-
+s/^server: nghttpx.*\r?\n//
# strip out the (dynamic) expire date from the file so that the rest
# matches
s/\"2([^\"]*)\"/TIMESTAMP/