mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:03:36 +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
|
|
@ -68,7 +68,7 @@ s/boundary=------------------------[a-z0-9]*/boundary=--------------------------
|
|||
POST /554 HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Content-Length: 718
|
||||
Content-Length: 744
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
|
||||
------------------------------
|
||||
|
|
@ -87,6 +87,7 @@ Content-Disposition: form-data; name="filename"
|
|||
postit2.c
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="submit"
|
||||
Content-Type: text/plain
|
||||
|
||||
send
|
||||
------------------------------
|
||||
|
|
@ -98,7 +99,7 @@ blah blah
|
|||
POST /554 HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Content-Length: 732
|
||||
Content-Length: 758
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
|
||||
------------------------------
|
||||
|
|
@ -117,6 +118,7 @@ Content-Disposition: form-data; name="filename"
|
|||
postit2.c
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="submit"
|
||||
Content-Type: text/plain
|
||||
|
||||
send
|
||||
------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue