1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

test220/314: adjust to run with Hyper

This commit is contained in:
Daniel Stenberg 2021-03-11 16:05:46 +01:00
parent 7098f9fe3a
commit f073a427b4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 16 additions and 0 deletions

View File

@ -55,14 +55,22 @@ http://%HOSTIP:%HTTPPORT/220 --compressed
# Verify data after the test has been "shot"
<verify>
<strippart>
%if hyper
s/^Accept-Encoding: .*/Accept-Encoding: xxx /
%else
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
%endif
</strippart>
<protocol>
GET /220 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
%if hyper
Accept-Encoding: xxx
%else
Accept-Encoding: xxx
%endif
</protocol>
</verify>

View File

@ -182,14 +182,22 @@ http://%HOSTIP:%HTTPPORT/314 --compressed
# Verify data after the test has been "shot"
<verify>
<strippart>
%if hyper
s/^Accept-Encoding: .*/Accept-Encoding: xxx /
%else
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
%endif
</strippart>
<protocol>
GET /314 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
%if hyper
Accept-Encoding: xxx
%else
Accept-Encoding: xxx
%endif
</protocol>
</verify>