-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=100445 Patch by Kunihiko Sakamoto <ksakamoto@chromium.org> on 2012-10-28 Reviewed by Kent Tamura. Source/WebCore: Fixed a bug where an empty boundary parameter was added to Content-Type header when POSTing forms with enctype=text/plain. Test: http/tests/misc/form-post-textplain.html * loader/FormSubmission.cpp: (WebCore::FormSubmission::populateFrameLoadRequest): Add boundary parameter to Content-Type only when a boundary string is generated. LayoutTests: Fixed test failure and added a test case for Content-Type header. * http/tests/misc/form-post-textplain-expected.txt: * http/tests/misc/form-post-textplain.html: * http/tests/misc/resources/form-post-textplain.php: Added a test case for testing Content-Type POST header. Also fixed existing test case that attempted to test newline in the input value. LF in the input value is replaced with CRLF durling the construction of the form data set. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6e1f0a37