mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
tool_formparse: accept digits in --form type= strings
Adjusted test 186 to verify.
Regression in 9664d5a547, shipped in 8.11.1
Reported-by: IcedCoffeee on github
Assisted-by: Jay Satiro
Fixes #15761
Closes #15762
This commit is contained in:
parent
fd067bfb5b
commit
f7e065f314
2 changed files with 6 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ http
|
|||
HTTP RFC1867-type formposting with types on text fields
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -F "name=daniel;type=moo/foo" -F "html= <body>hello</body>;type=text/html;charset=verymoo"
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -F "name=daniel;type=moo/foo-.4" -F "html= <body>hello</body>;type=text/html;charset=verymoo"
|
||||
</command>
|
||||
# We create this file before the command is invoked!
|
||||
</client>
|
||||
|
|
@ -46,12 +46,12 @@ POST /we/want/%TESTNUMBER HTTP/1.1
|
|||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Content-Length: 338
|
||||
Content-Length: 341
|
||||
Content-Type: multipart/form-data; boundary=----------------------------212d9006ceb5
|
||||
|
||||
------------------------------212d9006ceb5
|
||||
Content-Disposition: form-data; name="name"
|
||||
Content-Type: moo/foo
|
||||
Content-Type: moo/foo-.4
|
||||
|
||||
daniel
|
||||
------------------------------212d9006ceb5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue