CB-6313 [wp8]: Extra boundary in upload

When performing an upload on Windows Phone, an extra boundary is
included after any parameters, and before the file contents. This causes
some servers (such as express/multiparty on node.js) to fail to handle
the request properly.

This commit removes the extraneous boundary.

Fixes https://issues.apache.org/jira/browse/CB-6313

github close #73
This commit is contained in:
Dan Polivy 2015-03-26 23:13:12 -07:00 committed by sgrebnov
parent 75d55ddaaa
commit 4f7e1566bd

View File

@ -818,7 +818,6 @@ namespace WPCordovaClassLib.Cordova.Commands
byte[] formItemBytes = System.Text.Encoding.UTF8.GetBytes(formItem);
requestStream.Write(formItemBytes, 0, formItemBytes.Length);
}
requestStream.Write(boundaryBytes, 0, boundaryBytes.Length);
}
using (IsolatedStorageFile isoFile = IsolatedStorageFile.GetUserStoreForApplication())
{