mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
tests: ignore case of chunked hex numbers in tests
When hyper is used, it emits uppercase hexadecimal numbers for chunked encoding lengths. Without hyper, lowercase hexadecimal numbers are used. This change adds preprocessor statements to tests where this is an issue, and adapts the fixtures to match. Closes #6987
This commit is contained in:
parent
8419fe4d88
commit
70cf50fb4a
@ -63,7 +63,11 @@ Accept: */*
|
||||
Transfer-Encoding: chunked
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
7A
|
||||
%else
|
||||
7a
|
||||
%endif
|
||||
This is data we upload with PUT
|
||||
it comes from stdin so MUST be sent
|
||||
with chunked encoding
|
||||
|
@ -57,7 +57,11 @@ Accept: */*
|
||||
Transfer-Encoding: chunked
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
7A
|
||||
%else
|
||||
7a
|
||||
%endif
|
||||
This is data we upload with PUT
|
||||
it comes from stdin so MUST be sent
|
||||
with chunked encoding
|
||||
|
@ -48,7 +48,11 @@ Transfer-Encoding: chunked
|
||||
Trailer: my-super-awesome-trailer, my-other-awesome-trailer
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
E
|
||||
%else
|
||||
e
|
||||
%endif
|
||||
Hello Cloud!
|
||||
|
||||
0
|
||||
|
@ -47,7 +47,11 @@ Accept: */*
|
||||
Transfer-Encoding: chunked
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
1E
|
||||
%else
|
||||
1e
|
||||
%endif
|
||||
just some tiny teeny contents
|
||||
|
||||
0
|
||||
|
@ -56,7 +56,11 @@ one
|
||||
two
|
||||
5
|
||||
three
|
||||
%if hyper
|
||||
1D
|
||||
%else
|
||||
1d
|
||||
%endif
|
||||
and a final longer crap: four
|
||||
0
|
||||
|
||||
|
@ -100,7 +100,11 @@ one
|
||||
two
|
||||
5
|
||||
three
|
||||
%if hyper
|
||||
1D
|
||||
%else
|
||||
1d
|
||||
%endif
|
||||
and a final longer crap: four
|
||||
0
|
||||
|
||||
|
@ -108,7 +108,11 @@ y
|
||||
1
|
||||
|
||||
|
||||
%if hyper
|
||||
19A
|
||||
%else
|
||||
19a
|
||||
%endif
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="filename"
|
||||
@ -169,7 +173,11 @@ y
|
||||
1
|
||||
|
||||
|
||||
%if hyper
|
||||
19A
|
||||
%else
|
||||
19a
|
||||
%endif
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="filename"
|
||||
|
@ -90,7 +90,11 @@ Content-Disposition: attachment; filename="test%TESTNUMBER.filedata"
|
||||
Content-Type: text/whatever
|
||||
|
||||
|
||||
%if hyper
|
||||
A5
|
||||
%else
|
||||
a5
|
||||
%endif
|
||||
This is data from a file.
|
||||
|
||||
------------------------------
|
||||
@ -98,7 +102,11 @@ Content-Disposition: attachment; filename="test%TESTNUMBER.filedata"
|
||||
Content-Type: text/whatever
|
||||
|
||||
|
||||
%if hyper
|
||||
AF
|
||||
%else
|
||||
af
|
||||
%endif
|
||||
This is data from a file.
|
||||
|
||||
--------------------------------
|
||||
@ -107,7 +115,11 @@ This is data from a file.
|
||||
Content-Disposition: form-data; name="filecontents"
|
||||
|
||||
|
||||
%if hyper
|
||||
10F
|
||||
%else
|
||||
10f
|
||||
%endif
|
||||
This is data from a file.
|
||||
|
||||
------------------------------
|
||||
|
@ -81,7 +81,11 @@ Transfer-Encoding: chunked
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
1AF
|
||||
%else
|
||||
1af
|
||||
%endif
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="greeting"
|
||||
Content-Type: application/X-Greeting
|
||||
|
@ -66,7 +66,11 @@ Transfer-Encoding: chunked
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
7F
|
||||
%else
|
||||
7f
|
||||
%endif
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="field"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
@ -69,7 +69,11 @@ Transfer-Encoding: chunked
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
Expect: 100-continue
|
||||
|
||||
%if hyper
|
||||
C1
|
||||
%else
|
||||
c1
|
||||
%endif
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="field1"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user