cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-6000 Nginx rejects Content-Type without a space before "boundary".
Date Mon, 10 Feb 2014 18:31:16 GMT
Updated Branches:
  refs/heads/dev 6f91ac3a3 -> 651460fb6


CB-6000 Nginx rejects Content-Type without a space before "boundary".

From: https://github.com/apache/cordova-plugin-file-transfer/pull/6


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

Branch: refs/heads/dev
Commit: 651460fb6b41035c96bcc31a38621ec8100648f1
Parents: 6f91ac3
Author: Christoph Neumann <christoph@neumannhaus.com>
Authored: Thu Sep 26 09:35:11 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Feb 10 13:30:27 2014 -0500

----------------------------------------------------------------------
 src/android/FileTransfer.java | 2 +-
 src/wp/FileTransfer.cs        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/651460fb/src/android/FileTransfer.java
----------------------------------------------------------------------
diff --git a/src/android/FileTransfer.java b/src/android/FileTransfer.java
index 6ad30dd..7ea23ca 100644
--- a/src/android/FileTransfer.java
+++ b/src/android/FileTransfer.java
@@ -315,7 +315,7 @@ public class FileTransfer extends CordovaPlugin {
 
                     // Use a post method.
                     conn.setRequestMethod(httpMethod);
-                    conn.setRequestProperty("Content-Type", "multipart/form-data;boundary="
+ BOUNDARY);
+                    conn.setRequestProperty("Content-Type", "multipart/form-data; boundary="
+ BOUNDARY);
 
                     // Set the cookies on the response
                     String cookie = CookieManager.getInstance().getCookie(target);

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/651460fb/src/wp/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs
index f9fe3fe..f8b6ed5 100644
--- a/src/wp/FileTransfer.cs
+++ b/src/wp/FileTransfer.cs
@@ -285,7 +285,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                     return;
                 }
                 webRequest = (HttpWebRequest)WebRequest.Create(serverUri);
-                webRequest.ContentType = "multipart/form-data;boundary=" + Boundary;
+                webRequest.ContentType = "multipart/form-data; boundary=" + Boundary;
                 webRequest.Method = uploadOptions.Method;
 
                 if (!string.IsNullOrEmpty(uploadOptions.Headers))


Mime
View raw message