Skip to content
Snippets Groups Projects
Commit 6a8927ed authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- set mime type for UP post

- removed url encoding
parent 0a8c3307
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ namespace ClientServer.Helpers
/// </summary>
public static class Constants
{
public static string VersionString = "2.28.0";
public static string VersionString = "2.28.1";
/// <summary>
/// this is only set once at program.cs!!
......
......@@ -544,12 +544,12 @@ namespace ClientServer.Controllers.Core.Login
HttpResponseMessage jsonResponse = null;
//HttpUtility.HtmlEncode(unencoded)
var encodedTid = WebUtility.HtmlEncode(tuple.Tid); //removes all not ascii characters?
// var encodedTid = WebUtility.HtmlEncode(tuple.Tid); //removes all not ascii characters?
try
{
// jsonResponse = await client.GetAsync(AppConfiguration.ExternalLoginUrl + encodedTid, cts.Token);
HttpContent content = new StringContent(encodedTid);
HttpContent content = new StringContent(tuple.Tid, Encoding.UTF8, "application/json");
jsonResponse = await client.PostAsync(AppConfiguration.ExternalLoginUrl, content, cts.Token);
}
catch (Exception ex)
......@@ -667,12 +667,13 @@ namespace ClientServer.Controllers.Core.Login
HttpResponseMessage jsonResponse = null;
//HttpUtility.HtmlEncode(unencoded)
var encodedTid = WebUtility.HtmlEncode(tid); //removes all not ascii characters?
// var encodedTid = WebUtility.HtmlEncode(tid); //removes all not ascii characters?
try
{
// jsonResponse = await client.GetAsync(AppConfiguration.ExternalLoginUrl + encodedTid, cts.Token);
HttpContent content = new StringContent(encodedTid);
HttpContent content = new StringContent(tid, Encoding.UTF8, "application/json");
jsonResponse = await client.PostAsync(AppConfiguration.ExternalLoginUrl, content, cts.Token);
}
catch (Exception ex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment