Skip to content

Commit

Permalink
Incude source for portal functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mersadk committed Apr 19, 2024
1 parent e15badd commit 46b4c96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DWSIM.ProFeatures/FormPortal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ private async Task<LicenseResponseModel> GetLicenseInfo()
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");

var response = await httpClient.PostAsync(url, null);
var content = new StringContent(JsonConvert.SerializeObject(new { source = "dwsim-os" }), Encoding.UTF8, "application/json");
var response = await httpClient.PostAsync(url, content);

if (response.IsSuccessStatusCode)
{
Expand Down

0 comments on commit 46b4c96

Please sign in to comment.