apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
596 stars 887 forks source link

When "Content-Type" has "multipart/form-data", should not contain a "Content-Length" in the boundary area. #160

Closed asapping99 closed 6 years ago

asapping99 commented 7 years ago

Platforms affected

platform : ios

What does this PR do?

"https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html" in the article "Multipart Form" of the site, there is no content that ey included the "Content-Length" to the "boundary" region, "boundary "in the region," Content-Type "," Content-Disposition "and it has been seen to have put," Content-Transfer-Encoding "only. Therefore, it is unnecessary source, there is a possibility that the bug occurs, it is assumed that the suit is to delete.

What testing has been done on this change?

Bug you do not check the "Content-Length" of the boundary in the area occurred in the services currently under development. Once you apply the source, it was Mashi normal operation.

Checklist

…Content-Length" in the boundary area.

cordova-qa commented 7 years ago

Can one of the admins verify this patch?

maverickmishra commented 6 years ago

With the new features introduced in XMLHttpRequest, this plugin is not needed any more. Migrating from this plugin to using the new features of XMLHttpRequest, is explained in this Cordova blog post.