content-length: 6\r
content-type: text/html\r
funny-head: yesyes\r
-server: cut-out\r
via: 1.1 nghttpx\r
\r
-foo-
date: Thu, 09 Nov 2010 14:49:00 GMT\r
content-length: 6\r
content-type: text/html\r
-server: cut-out\r
via: 1.1 nghttpx\r
\r
-maa-
</stdout>
<stripfile>
-s/^server:.*/server: cut-out\r/
+s/^server: nghttpx.*\r?\n//
</stripfile>
</verify>
</testcase>
content-length: 6\r
content-type: text/html\r
funny-head: yesyes\r
-server: cut-out\r
via: 1.1 nghttpx\r
\r
-foo-
</stdout>
<stripfile>
-s/^server:.*/server: cut-out\r/
+s/^server: nghttpx.*\r?\n//
</stripfile>
</verify>
</testcase>
content-length: 6\r
content-type: text/html\r
funny-head: yesyes\r
-server: cut-out\r
via: 1.1 nghttpx\r
\r
</stdout>
<stripfile>
-s/^server:.*/server: cut-out\r/
+s/^server: nghttpx.*\r?\n//
</stripfile>
</verify>
</testcase>
content-type: text/html\r
funny-head: yesyes\r
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0\r
-server: nghttpx\r
via: 1.1 nghttpx\r
\r
-foo-
content-type: text/html\r
funny-head: yesyes\r
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0\r
-server: nghttpx\r
via: 1.1 nghttpx\r
\r
-foo-
</stdout>
<stripfile>
+s/^server: nghttpx.*\r?\n//
# strip out the (dynamic) expire date from the file so that the rest
# matches
s/\"2([^\"]*)\"/TIMESTAMP/
content-type: text/html\r
funny-head: yesyes\r
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0\r
-server: nghttpx\r
via: 1.1 nghttpx\r
\r
-foo-
content-type: text/html\r
funny-head: yesyes\r
alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0\r
-server: nghttpx\r
via: 1.1 nghttpx\r
\r
-foo-
</stdout>
<stripfile>
+s/^server: nghttpx.*\r?\n//
# strip out the (dynamic) expire date from the file so that the rest
# matches
s/\"2([^\"]*)\"/TIMESTAMP/