summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar k0st1x2016-02-01 16:22:51 +0300
committerGravatar k0st1x2016-02-01 16:22:51 +0300
commit0173a51e471db0753952eaa90972106e0583be7b (patch)
tree4fc0e89111732f9968abc79889ae4bf87c57fca5
parent332295a92b951fecbb757e28b3371e24b2ff6b38 (diff)
fix sending url for push notifications
-rw-r--r--Juick/Classes/AccountManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/Classes/AccountManager.cs b/Juick/Classes/AccountManager.cs
index eb99d92..fee2818 100644
--- a/Juick/Classes/AccountManager.cs
+++ b/Juick/Classes/AccountManager.cs
@@ -90,12 +90,12 @@ namespace Juick.Classes
void RegisterNotificationUrl(string newUrl)
{
- App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/register?url=" + newUrl),
+ App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/register?url=" + Uri.EscapeDataString(newUrl)),
response => Debug.WriteLine("Registering push url, status {0}: {1}", response.Request.Resource, response.StatusCode));
}
void UnregisterNotificationUrl(string oldUrl)
{
- App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/unregister?url=" + oldUrl),
+ App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/unregister?url=" + Uri.EscapeDataString(oldUrl)),
response => Debug.WriteLine("Unregistered push url, status {0}: {1}", response.Request.Resource, response.StatusCode));
}
}