mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
tests: make 2006-2010 handle different port number lengths
This commit is contained in:
parent
80d6515415
commit
5e2f4a33fe
@ -85,8 +85,15 @@ Accept: */*
|
|||||||
<file1 name="log/download2006">
|
<file1 name="log/download2006">
|
||||||
Some data delivered from an HTTP resource
|
Some data delivered from an HTTP resource
|
||||||
</file1>
|
</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">
|
<file2 name="log/heads2006">
|
||||||
Content-Length: 496
|
Content-Length: yeps
|
||||||
Accept-ranges: bytes
|
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)...
|
||||||
Metalink: validating (log/download2006) [sha-256] OK
|
Metalink: validating (log/download2006) [sha-256] OK
|
||||||
</file4>
|
</file4>
|
||||||
<stripfile2>
|
|
||||||
s/Last-Modified:.*//
|
|
||||||
</stripfile2>
|
|
||||||
<stripfile4>
|
<stripfile4>
|
||||||
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
|
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
|
||||||
</stripfile4>
|
</stripfile4>
|
||||||
|
@ -86,11 +86,14 @@ Accept: */*
|
|||||||
<file1 name="log/download2007">
|
<file1 name="log/download2007">
|
||||||
Something delivered from an HTTP resource
|
Something delivered from an HTTP resource
|
||||||
</file1>
|
</file1>
|
||||||
|
# The Content-Length replace here is to handle with 4/5 digit port number in
|
||||||
|
# the content
|
||||||
<stripfile2>
|
<stripfile2>
|
||||||
s/Last-Modified:.*//
|
s/Last-Modified:.*//
|
||||||
|
s/Content-Length: 49[67]/Content-Length: yeps/
|
||||||
</stripfile2>
|
</stripfile2>
|
||||||
<file2 name="log/heads2007">
|
<file2 name="log/heads2007">
|
||||||
Content-Length: 496
|
Content-Length: yeps
|
||||||
Accept-ranges: bytes
|
Accept-ranges: bytes
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,11 +78,14 @@ Accept: */*
|
|||||||
<file1 name="log/download2008">
|
<file1 name="log/download2008">
|
||||||
Some stuff delivered from an HTTP resource
|
Some stuff delivered from an HTTP resource
|
||||||
</file1>
|
</file1>
|
||||||
|
# The Content-Length replace here is to handle with 4/5 digit port number in
|
||||||
|
# the content
|
||||||
<stripfile2>
|
<stripfile2>
|
||||||
s/Last-Modified:.*//
|
s/Last-Modified:.*//
|
||||||
|
s/Content-Length: 49[67]/Content-Length: yeps/
|
||||||
</stripfile2>
|
</stripfile2>
|
||||||
<file2 name="log/heads2008">
|
<file2 name="log/heads2008">
|
||||||
Content-Length: 496
|
Content-Length: yeps
|
||||||
Accept-ranges: bytes
|
Accept-ranges: bytes
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,11 +79,14 @@ Accept: */*
|
|||||||
<file1 name="log/download2009">
|
<file1 name="log/download2009">
|
||||||
Some contents delivered from an HTTP resource
|
Some contents delivered from an HTTP resource
|
||||||
</file1>
|
</file1>
|
||||||
|
# The Content-Length replace here is to handle with 4/5 digit port number in
|
||||||
|
# the content
|
||||||
<stripfile2>
|
<stripfile2>
|
||||||
s/Last-Modified:.*//
|
s/Last-Modified:.*//
|
||||||
|
s/Content-Length: 49[67]/Content-Length: yeps/
|
||||||
</stripfile2>
|
</stripfile2>
|
||||||
<file2 name="log/heads2009">
|
<file2 name="log/heads2009">
|
||||||
Content-Length: 496
|
Content-Length: yeps
|
||||||
Accept-ranges: bytes
|
Accept-ranges: bytes
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,11 +78,14 @@ Accept: */*
|
|||||||
<file1 name="log/download2010">
|
<file1 name="log/download2010">
|
||||||
Contents delivered from an HTTP resource
|
Contents delivered from an HTTP resource
|
||||||
</file1>
|
</file1>
|
||||||
|
# The Content-Length replace here is to handle with 4/5 digit port number in
|
||||||
|
# the content
|
||||||
<stripfile2>
|
<stripfile2>
|
||||||
s/Last-Modified:.*//
|
s/Last-Modified:.*//
|
||||||
|
s/Content-Length: 49[67]/Content-Length: yeps/
|
||||||
</stripfile2>
|
</stripfile2>
|
||||||
<file2 name="log/heads2010">
|
<file2 name="log/heads2010">
|
||||||
Content-Length: 496
|
Content-Length: yeps
|
||||||
Accept-ranges: bytes
|
Accept-ranges: bytes
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user