cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
Subject [2/2] cordova-plugin-file-transfer git commit: CB-6313 [wp8]: Extra boundary in upload
Date Sat, 25 Apr 2015 22:07:00 GMT
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


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/4f7e1566
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/4f7e1566
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/4f7e1566

Branch: refs/heads/master
Commit: 4f7e1566bd346c9fcfa6763dc598f7746b71ebe5
Parents: 75d55dd
Author: Dan Polivy <dan@cellartracker.com>
Authored: Thu Mar 26 23:13:12 2015 -0700
Committer: sgrebnov <v-segreb@microsoft.com>
Committed: Sat Apr 25 15:06:48 2015 -0700

----------------------------------------------------------------------
 src/wp/FileTransfer.cs | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/4f7e1566/src/wp/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs
index e1f9fb0..7c29cfc 100644
--- a/src/wp/FileTransfer.cs
+++ b/src/wp/FileTransfer.cs
@@ -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())
                     {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message