From 5e2f4a33fe663c2ae8cc92c02193a7261c524867 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 17 Apr 2020 00:00:45 +0200 Subject: tests: make 2006-2010 handle different port number lengths --- tests/data/test2006 | 12 ++++++++---- tests/data/test2007 | 5 ++++- tests/data/test2008 | 5 ++++- tests/data/test2009 | 5 ++++- tests/data/test2010 | 5 ++++- 5 files changed, 24 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/data/test2006 b/tests/data/test2006 index 0b84937ed..4cb61192d 100644 --- a/tests/data/test2006 +++ b/tests/data/test2006 @@ -85,8 +85,15 @@ Accept: */* Some data delivered from an HTTP resource + +# The Content-Length replace here is to handle with 4/5 digit port number in +# the content + +s/Last-Modified:.*// +s/Content-Length: 49[67]/Content-Length: yeps/ + -Content-Length: 496 +Content-Length: yeps Accept-ranges: bytes @@ -110,9 +117,6 @@ Metalink: fetching (log/download2006) from (http://%HOSTIP:%HTTPPORT/2006) OK Metalink: validating (log/download2006)... Metalink: validating (log/download2006) [sha-256] OK - -s/Last-Modified:.*// - $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i)) diff --git a/tests/data/test2007 b/tests/data/test2007 index c8c023efb..738ac35f9 100644 --- a/tests/data/test2007 +++ b/tests/data/test2007 @@ -86,11 +86,14 @@ Accept: */* Something delivered from an HTTP resource +# The Content-Length replace here is to handle with 4/5 digit port number in +# the content s/Last-Modified:.*// +s/Content-Length: 49[67]/Content-Length: yeps/ -Content-Length: 496 +Content-Length: yeps Accept-ranges: bytes diff --git a/tests/data/test2008 b/tests/data/test2008 index 570cdba7d..b29ba911b 100644 --- a/tests/data/test2008 +++ b/tests/data/test2008 @@ -78,11 +78,14 @@ Accept: */* Some stuff delivered from an HTTP resource +# The Content-Length replace here is to handle with 4/5 digit port number in +# the content s/Last-Modified:.*// +s/Content-Length: 49[67]/Content-Length: yeps/ -Content-Length: 496 +Content-Length: yeps Accept-ranges: bytes diff --git a/tests/data/test2009 b/tests/data/test2009 index 10f95df4c..3cf4e4c48 100644 --- a/tests/data/test2009 +++ b/tests/data/test2009 @@ -79,11 +79,14 @@ Accept: */* Some contents delivered from an HTTP resource +# The Content-Length replace here is to handle with 4/5 digit port number in +# the content s/Last-Modified:.*// +s/Content-Length: 49[67]/Content-Length: yeps/ -Content-Length: 496 +Content-Length: yeps Accept-ranges: bytes diff --git a/tests/data/test2010 b/tests/data/test2010 index d43f4f1e1..08f1bfaa4 100644 --- a/tests/data/test2010 +++ b/tests/data/test2010 @@ -78,11 +78,14 @@ Accept: */* Contents delivered from an HTTP resource +# The Content-Length replace here is to handle with 4/5 digit port number in +# the content s/Last-Modified:.*// +s/Content-Length: 49[67]/Content-Length: yeps/ -Content-Length: 496 +Content-Length: yeps Accept-ranges: bytes -- cgit v1.2.3