Skip to content

Commit

Permalink
Fixes Redth#186
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed May 29, 2013
1 parent 84d6abe commit 1684c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PushSharp.WindowsPhone/WindowsPhoneNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ public override string PayloadToString()
sb.Append("?");

foreach (string key in Parameters.Keys)
sb.Append(XmlEncode(key + "=" + Parameters[key].ToString()) + "&");
sb.Append(XmlEncode(key + "=" + Parameters[key].ToString()) + "&");
}

var paramValue = sb.ToString();

if (!string.IsNullOrEmpty(paramValue) && paramValue.EndsWith("&"))
paramValue.Substring(0, paramValue.Length - "&".Length);
if (!string.IsNullOrEmpty(paramValue) && paramValue.EndsWith("&"))
paramValue.Substring(0, paramValue.Length - 1);

if (!string.IsNullOrEmpty(paramValue))
toast.Add(new XElement(wp + "Param", paramValue));
Expand Down

0 comments on commit 1684c5c

Please sign in to comment.