mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:03:32 +03:00
mime: keep "text/plain" content type if user-specified.
Include test cases in 554, 587, 650. Fixes https://github.com/curl/curl/issues/1986
This commit is contained in:
parent
56509055d2
commit
0401734dfd
7 changed files with 35 additions and 27 deletions
|
|
@ -63,9 +63,12 @@ Transfer-Encoding: chunked
|
|||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
Expect: 100-continue
|
||||
|
||||
5f0
|
||||
60a
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="fieldname"
|
||||
Content-Type: text/plain
|
||||
X-customheader-1: Header 1 data
|
||||
X-customheader-2: Header 2 data
|
||||
|
||||
this is what we post to the silly web server
|
||||
------------------------------
|
||||
|
|
@ -98,15 +101,13 @@ This is data from a file.
|
|||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="filecontents"
|
||||
X-customheader-1: Header 1 data
|
||||
X-customheader-2: Header 2 data
|
||||
|
||||
This is data from a file.
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="formlength"
|
||||
|
||||
1341
|
||||
1367
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="standardinput"
|
||||
Content-Type: application/octet-stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue