From 0401734dfd39617a42318295a6e54064b40b2502 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 12 Oct 2017 19:36:16 +0100 Subject: mime: keep "text/plain" content type if user-specified. Include test cases in 554, 587, 650. Fixes https://github.com/curl/curl/issues/1986 --- tests/data/test554 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/data/test554') diff --git a/tests/data/test554 b/tests/data/test554 index ce4a14dc4..24d9c0468 100644 --- a/tests/data/test554 +++ b/tests/data/test554 @@ -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 ------------------------------ -- cgit v1.2.3