From 6bd367c5120f54955a4e52874d273c340ec9dd28 Mon Sep 17 00:00:00 2001 From: purplecabbage Date: Thu, 12 Sep 2013 17:24:09 -0700 Subject: [PATCH] fixed merge anomaly error --- src/wp/FileTransfer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs index ff21b85..6cc1e1f 100644 --- a/src/wp/FileTransfer.cs +++ b/src/wp/FileTransfer.cs @@ -325,11 +325,8 @@ namespace WPCordovaClassLib.Cordova.Commands string temp = jsonHeaders.StartsWith("{") ? jsonHeaders.Substring(1) : jsonHeaders; temp = temp.EndsWith("}") ? temp.Substring(0, temp.Length - 1) : temp; - string[] strHeaders = temp.Split(','); - for (int n = 0; n < strHeaders.Length; n++) - { - string[] split = strHeaders[n].Split(":".ToCharArray(), 2); - if (split.Length == 2) + string[] strHeaders = temp.Split(','); + for (int n = 0; n < strHeaders.Length; n++) { string[] split = strHeaders[n].Split(':'); if (split.Length == 2) @@ -338,6 +335,8 @@ namespace WPCordovaClassLib.Cordova.Commands split[1] = JSON.JsonHelper.Deserialize(split[1]); result[split[0]] = split[1]; } + + } return result; } @@ -349,6 +348,7 @@ namespace WPCordovaClassLib.Cordova.Commands } + public void download(string options) { TransferOptions downloadOptions = null;