diff --git a/plugin.xml b/plugin.xml index 84253ce..dd08a19 100644 --- a/plugin.xml +++ b/plugin.xml @@ -69,7 +69,7 @@ - + diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs index 6cc1e1f..8b03d85 100644 --- a/src/wp/FileTransfer.cs +++ b/src/wp/FileTransfer.cs @@ -328,15 +328,18 @@ namespace WPCordovaClassLib.Cordova.Commands string[] strHeaders = temp.Split(','); for (int n = 0; n < strHeaders.Length; n++) { - string[] split = strHeaders[n].Split(':'); - if (split.Length == 2) + // we need to use indexOf in order to WP7 compatible + int splitIndex = strHeaders[n].IndexOf(':'); + if (splitIndex > 0) { + string[] split = new string[2]; + split[0] = strHeaders[n].Substring(0, splitIndex); + split[1] = strHeaders[n].Substring(splitIndex + 1); + split[0] = JSON.JsonHelper.Deserialize(split[0]); split[1] = JSON.JsonHelper.Deserialize(split[1]); result[split[0]] = split[1]; } - - } return result; }