cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dase...@apache.org
Subject cordova-plugin-file-transfer git commit: CB-10208 Fix file-transfer multipart form data upload format on Windows
Date Thu, 17 Dec 2015 10:09:50 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 182b0c5eb -> 333dd7ec1


CB-10208 Fix file-transfer multipart form data upload format on Windows


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/333dd7ec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/333dd7ec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/333dd7ec

Branch: refs/heads/master
Commit: 333dd7ec1ac87298aba3c7af037c49103a1ffd52
Parents: 182b0c5
Author: daserge <v-seshak@microsoft.com>
Authored: Thu Dec 17 12:57:25 2015 +0300
Committer: daserge <v-seshak@microsoft.com>
Committed: Thu Dec 17 12:57:25 2015 +0300

----------------------------------------------------------------------
 src/windows/FileTransferProxy.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/333dd7ec/src/windows/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/FileTransferProxy.js b/src/windows/FileTransferProxy.js
index 6065f76..d5ef9ba 100644
--- a/src/windows/FileTransferProxy.js
+++ b/src/windows/FileTransferProxy.js
@@ -237,7 +237,7 @@ exec(win, fail, 'FileTransfer', 'upload',
                 multipartFile += " filename=\"" + fileName + "\"" + LINE_END;
                 multipartFile += "Content-Type: " + mimeType + LINE_END + LINE_END;
 
-                var bound = LINE_END + LINE_START + BOUNDARY + LINE_END;
+                var bound = LINE_END + LINE_START + BOUNDARY + LINE_START + LINE_END;
 
                 uploader.setRequestHeader("Content-Type", "multipart/form-data; boundary="
+ BOUNDARY);
                 writer.writeString(multipartParams);


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


Mime
View raw message