]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: make 2006-2010 handle different port number lengths
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Apr 2020 22:00:45 +0000 (00:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Apr 2020 20:45:40 +0000 (22:45 +0200)
tests/data/test2006
tests/data/test2007
tests/data/test2008
tests/data/test2009
tests/data/test2010

index 0b84937ed1107de5ceb241675e850f30f944e959..4cb61192d75aecb6f7b2cc501c92e7b57d7b384d 100644 (file)
@@ -85,8 +85,15 @@ Accept: */*
 <file1 name="log/download2006">
 Some data delivered from an HTTP resource
 </file1>
+
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
+<stripfile2>
+s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
+</stripfile2>
 <file2 name="log/heads2006">
-Content-Length: 496\r
+Content-Length: yeps\r
 Accept-ranges: bytes\r
 
 \r
@@ -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
 </file4>
-<stripfile2>
-s/Last-Modified:.*//
-</stripfile2>
 <stripfile4>
 $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
 </stripfile4>
index c8c023efb03999f0542db984c0fa52f850029e62..738ac35f96e5657466aaf2c02d1b51e814cc1f12 100644 (file)
@@ -86,11 +86,14 @@ Accept: */*
 <file1 name="log/download2007">
 Something delivered from an HTTP resource
 </file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
 <stripfile2>
 s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
 </stripfile2>
 <file2 name="log/heads2007">
-Content-Length: 496\r
+Content-Length: yeps\r
 Accept-ranges: bytes\r
 
 \r
index 570cdba7d3175b863db9cd73c56875a940a363a8..b29ba911b8ed0a28eca6c80f719b441fbc055281 100644 (file)
@@ -78,11 +78,14 @@ Accept: */*
 <file1 name="log/download2008">
 Some stuff delivered from an HTTP resource
 </file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
 <stripfile2>
 s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
 </stripfile2>
 <file2 name="log/heads2008">
-Content-Length: 496\r
+Content-Length: yeps\r
 Accept-ranges: bytes\r
 
 \r
index 10f95df4c761568b629a29cf4c02ddd9ac2f0ead..3cf4e4c48fa1545f2769280c24816d368b916058 100644 (file)
@@ -79,11 +79,14 @@ Accept: */*
 <file1 name="log/download2009">
 Some contents delivered from an HTTP resource
 </file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
 <stripfile2>
 s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
 </stripfile2>
 <file2 name="log/heads2009">
-Content-Length: 496\r
+Content-Length: yeps\r
 Accept-ranges: bytes\r
 
 \r
index d43f4f1e1a86adc4c25f6bdfa4042b258bd8cd23..08f1bfaa4465b32ae9cf8b8737764ff7c5dffbb2 100644 (file)
@@ -78,11 +78,14 @@ Accept: */*
 <file1 name="log/download2010">
 Contents delivered from an HTTP resource
 </file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
 <stripfile2>
 s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
 </stripfile2>
 <file2 name="log/heads2010">
-Content-Length: 496\r
+Content-Length: yeps\r
 Accept-ranges: bytes\r
 
 \r