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:
David Cook 2021-05-03 19:29:40 -05:00 committed by Daniel Stenberg
parent 8419fe4d88
commit 70cf50fb4a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
11 changed files with 56 additions and 0 deletions

View file

@ -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.
------------------------------