mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:23:31 +03:00
tests: use crlf=yes attribute more
To make special newlines more explicit and visible. Mostly in `<protocol>` sections, some in `<data*>` and `<upload>`. Reducing the number of `tests/data/test*`: - CRLF newlines from 21535 to 11337. - files with mixed newlines from 1335 to 707. Also delete empty `<protocol>` sections. Closes #19284
This commit is contained in:
parent
869143b194
commit
4d2a05d3fe
1182 changed files with 11433 additions and 11453 deletions
|
|
@ -41,25 +41,25 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -F "name=daniel;type=moo/foo-.4" -F
|
|||
<strip>
|
||||
^(Content-Type: multipart/form-data;|------------).*
|
||||
</strip>
|
||||
<protocol>
|
||||
POST /we/want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Content-Length: 341
|
||||
Content-Type: multipart/form-data; boundary=----------------------------212d9006ceb5
|
||||
|
||||
------------------------------212d9006ceb5
|
||||
Content-Disposition: form-data; name="name"
|
||||
Content-Type: moo/foo-.4
|
||||
|
||||
daniel
|
||||
------------------------------212d9006ceb5
|
||||
Content-Disposition: form-data; name="html"
|
||||
Content-Type: text/html;charset=verymoo
|
||||
|
||||
<body>hello</body>
|
||||
------------------------------212d9006ceb5--
|
||||
<protocol crlf="yes">
|
||||
POST /we/want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Content-Length: 341
|
||||
Content-Type: multipart/form-data; boundary=----------------------------212d9006ceb5
|
||||
|
||||
------------------------------212d9006ceb5
|
||||
Content-Disposition: form-data; name="name"
|
||||
Content-Type: moo/foo-.4
|
||||
|
||||
daniel
|
||||
------------------------------212d9006ceb5
|
||||
Content-Disposition: form-data; name="html"
|
||||
Content-Type: text/html;charset=verymoo
|
||||
|
||||
<body>hello</body>
|
||||
------------------------------212d9006ceb5--
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue