summaryrefslogtreecommitdiff
path: root/tests/data/test1700
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2020-10-29 00:06:27 -0400
committerJay Satiro <raysatiro@yahoo.com>2020-10-29 23:08:03 -0400
commite4d38014cd74a43644774589eed00ce210022b3e (patch)
tree16ff44f65034febb6b5de00cfa4ecdcb4eb8e93f /tests/data/test1700
parentc80d510a1f242d38cb602d8322431e33ac6e62a8 (diff)
downloadgnurl-e4d38014cd74a43644774589eed00ce210022b3e.tar.gz
gnurl-e4d38014cd74a43644774589eed00ce210022b3e.tar.bz2
gnurl-e4d38014cd74a43644774589eed00ce210022b3e.zip
tests: fix some http/2 tests for older versions of nghttpx
- Add regex that strips http/2 server header name to those http/2 tests that don't already have it. - Improve that regex in all http/2 tests. Tests 358 and 359 were failing for me before this change on a system that uses an older version of nghttpx which includes its version number in the server header. Closes https://github.com/curl/curl/pull/6139
Diffstat (limited to 'tests/data/test1700')
-rw-r--r--tests/data/test17004
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/data/test1700 b/tests/data/test1700
index ff1e2724f..39260bc89 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-
</stdout>
<stripfile>
-s/^server:.*/server: cut-out /
+s/^server: nghttpx.*\r?\n//
</stripfile>
</verify>
</testcase>